#212F38

Closest named color: Gunmetal (#293241). oklch(29.7% 0.025 236.9), rgb(33, 47, 56).

Aa

White text reads best on this color (13.74:1).

About this color

#212F38 is a dark close to neutral grey. In OKLCH its lightness is 30%, its chroma 0.025. It has too little chroma to lean warm or cool. The nearest named color is Gunmetal (#293241), ΔE 0.022 away. White text reads best on it, at 13.74:1.

Hue familyNeutrals
Lightnessdark (30%)
Chromaclose to neutral grey (0.025)
Temperatureneutral
Nearest nameGunmetal (#293241)
Black text1.52:1
White text13.74:1

Values

HEX#212F38
RGBrgb(33, 47, 56)
HSLhsl(203, 26%, 17%)
OKLCHoklch(29.7% 0.025 236.9)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #212F38 13.74:1 AAA Lc -103.4 Preferred for body text
Black text on #212F38 1.52:1 Fails Lc 0.0 Not readable
#212F38 text on white 13.74:1 AAA Lc 100.3 Preferred for body text
#212F38 text on black 1.52:1 Fails Lc 0.0 Not readable

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 950.

  1. Step 50

    50

    #F3F6F8

    oklch(97.1% 0.004 236.5)

  2. Step 100

    100

    #E5EBEF

    oklch(93.7% 0.008 236.6)

  3. Step 200

    200

    #CFDBE3

    oklch(88.5% 0.017 236.7)

  4. Step 300

    300

    #AFC4D2

    oklch(80.9% 0.03 237)

  5. Step 400

    400

    #85A6BB

    oklch(70.8% 0.048 236.3)

  6. Step 500

    500

    #668FAA

    oklch(63% 0.061 237.8)

  7. Step 600

    600

    #4C7995

    oklch(55.5% 0.066 237)

  8. Step 700

    700

    #3D667F

    oklch(49.1% 0.061 236.6)

  9. Step 800

    800

    #335367

    oklch(42.6% 0.05 237.1)

  10. Step 900

    900

    #2D4554

    oklch(37.7% 0.039 236.7)

  11. Step 950

    950 (this color)

    #212F38

    oklch(29.7% 0.025 236.9)

Export this scale for Tailwind in the Tailwind colors tool

#212F38 with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#2B2F380.016
Deuteranopia (no green cones)#282C380.014
Tritanopia (no blue cones)#1931320.019
Achromatopsia (no color)#2D2D2D0.025

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #212F38

    #212F38

    oklch(29.7% 0.025 236.9)

  • #372A21

    #372A21

    oklch(29.7% 0.025 56.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #212F38

    #212F38

    oklch(29.7% 0.025 236.9)

  • #1E3133

    #1E3133

    oklch(29.8% 0.025 204.2)

  • #272D3A

    #272D3A

    oklch(29.7% 0.025 265.5)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #212F38

    #212F38

    oklch(29.7% 0.025 236.9)

  • #392826

    #392826

    oklch(29.6% 0.026 26.4)

  • #322C1F

    #322C1F

    oklch(29.6% 0.024 86)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #212F38

    #212F38

    oklch(29.7% 0.025 236.9)

  • #38282D

    #38282D

    oklch(29.8% 0.025 358.2)

  • #2C2F20

    #2C2F20

    oklch(29.7% 0.026 117.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #212F38

    #212F38

    oklch(29.7% 0.025 236.9)

  • #342934

    #342934

    oklch(29.8% 0.025 326.2)

  • #372A21

    #372A21

    oklch(29.7% 0.025 56.3)

  • #253026

    #253026

    oklch(29.5% 0.023 147.4)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #212F38, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #212F38 in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.