Skip to content

Tailwind CSS v4 default palette

Tailwind zinc-700: #3F3F46

In Tailwind CSS v4, zinc-700 is defined as --color-zinc-700: oklch(37% 0.013 285.805), which is #3F3F46 in hex and rgb(63, 63, 70): a dark, grayish blue. In Tailwind v3, zinc-700 was #3F3F46.

zinc-700#3F3F46

In OKLCH, zinc-700 has a lightness of 37.0%, chroma 0.013 and hue 285.8°.

The value fits inside sRGB, so the hex #3F3F46 represents it without loss on any screen.

In v3, zinc-700 was #3F3F46. The v4 value is ΔE OK 0.1 away, below the point where most people can tell them apart.

Tailwind zinc is a nearly neutral gray with a faint cool violet cast, sitting between the bluish gray and the hueless neutral.

Color codes for zinc-700

Color codes for zinc-700
Tailwind v4 token--color-zinc-700
OKLCH (source value)oklch(37% 0.013 285.805)
HEX#3F3F46
RGBrgb(63, 63, 70)
HSLhsl(240, 5%, 26%)
HWBhwb(240 25% 73%)
CMYK (naive, no ICC profile)cmyk(10%, 10%, 0%, 73%)
Decimal4,144,966
Tailwind v3 hex#3F3F46
Utility classesbg-zinc-700, text-zinc-700, border-zinc-700

Tailwind zinc scale

Contrast and accessibility

On zinc-700, white text has a contrast ratio of 10.44:1 and passes AAA at any text size; black text reaches 2.01:1.

WCAG 2.2 contrast ratios (success criteria 1.4.3 and 1.4.6: AA needs 4.5:1 for normal text and 3:1 for large text, AAA needs 7:1 and 4.5:1). APCA Lc is the lightness contrast from the APCA-W3 0.0.98G model proposed for WCAG 3; a higher absolute value is more readable, and Lc 75 is its suggested minimum for body text.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on zinc-7002.01:1FailFailFailFail9.7
White text on zinc-70010.44:1PassPassPassPass−98.3
Zinc-700 text on white10.44:1PassPassPassPass94.3
Zinc-700 text on black2.01:1FailFailFailFail−8.3

Tints and shades

Each step mixes var(--color-zinc-700) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-zinc-700), white 25%) in CSS.

Tints (mixed with white)

  1. 5%
    #49494f
  2. 15%
    #5c5c62
  3. 25%
    #6f6f74
  4. 35%
    #828287
  5. 45%
    #959599
  6. 55%
    #a9a9ac
  7. 65%
    #bcbcbe
  8. 75%
    #cfcfd1
  9. 85%
    #e2e2e3
  10. 95%
    #f5f5f6

Shades (mixed with black)

  1. 5%
    #3c3c43
  2. 15%
    #36363c
  3. 25%
    #2f2f35
  4. 35%
    #29292e
  5. 45%
    #232327
  6. 55%
    #1c1c1f
  7. 65%
    #161619
  8. 75%
    #101012
  9. 85%
    #09090b
  10. 95%
    #030304

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, zinc-700's complementary color is #404038 (close to darkslategray), its analogous colors are #3B4047 and #423E44, and its triadic partners are #463E3A and #3A423E. For text on top, white gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#404038
Analogous−30°, +30°#3b4047#423e44
Triadic+120°, +240°#463e3a#3a423e
Split-complementary+150°, +210°#443f38#3d413b

Computed in OKLCH: the hue is rotated by 180° (complementary), ±30° (analogous), ±120° (triadic) and 180° ±30° (split-complementary) while lightness and chroma stay fixed. Results that fall outside sRGB are brought back with the CSS Color 4 gamut mapping algorithm. Because this uses OKLCH, the values differ from tools that rotate hue in HSL, but every color keeps the same perceived lightness.

Warm or cool?

Tailwind zinc-700 is close to neutral: its OKLCH chroma is only 0.013, so its temperature comes from context. The faint 240° hue gives it a slightly cool cast.

Nearest named and Tailwind colors

Distance is ΔE OK, the Euclidean distance in OKLab multiplied by 100. Values under about 2 are hard to tell apart side by side.

Nearest CSS named colors

Nearest CSS named colors
ColorHEXΔE OK
darkslategray#2f4f4f5.2
darkslateblue#483d8b12.0
dimgray#69696915.1

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
neutral-700#4040401.3
mist-700#3944471.8
mauve-700#4639472.1

Code snippets

Tailwind CSS
<div class="bg-zinc-700 text-white">...</div>
<p class="text-zinc-700 border-zinc-700">...</p>
CSS
.element {
  color: var(--color-zinc-700);
  background-color: oklch(37% 0.013 285.805);
  border-color: #3f3f46;
  outline-color: rgb(63 63 70);
}
SwiftUI
import SwiftUI

extension Color {
  static let zinc700 = Color(red: 0.247, green: 0.247, blue: 0.275)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Zinc700 = Color(0xFF3F3F46)
Flutter
import 'package:flutter/material.dart';

const zinc700 = Color(0xFF3F3F46);
Android XML
<!-- res/values/colors.xml -->
<color name="zinc_700">#3F3F46</color>

Frequently asked questions

What is the hex code for Tailwind zinc-700?
In Tailwind CSS v4, zinc-700 is oklch(37% 0.013 285.805), which converts to #3F3F46 (rgb(63, 63, 70)) in sRGB. In Tailwind v3 the same name was #3F3F46.
What is the difference between zinc-700 in Tailwind v3 and v4?
v3 used the hex #3F3F46; v4 redefined the palette in OKLCH as oklch(37% 0.013 285.805). In v3, zinc-700 was #3F3F46. The v4 value is ΔE OK 0.1 away, below the point where most people can tell them apart.
How do I use zinc-700 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-zinc-700). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on zinc-700?
White text on zinc-700 has a contrast ratio of 10.44:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 2.01:1 and fails AA even for large text. In APCA terms that is Lc −98.3 for white and Lc 9.7 for black.
Which CSS named color is closest to zinc-700?
The closest is darkslategray (#2F4F4F) at ΔE OK 5.2, followed by darkslateblue and dimgray.

Last reviewed by Arielton Oberek.