#03031C

Closest named color: Midnight (#03012D). oklch(12.4% 0.057 274.3), rgb(3, 3, 28).

Aa

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

About this color

#03031C is a very dark, muted blue. In OKLCH its lightness is 12%, its chroma 0.057 and its hue 274°. Its hue sits on the cool side of the wheel. The nearest named color is Midnight (#03012D), ΔE 0.036 away. White text reads best on it, at 20.31:1.

Hue familyBlues
Lightnessvery dark (12%)
Chromamuted (0.057)
Temperaturecool
Nearest nameMidnight (#03012D)
Black text1.03:1
White text20.31:1

Values

HEX#03031C
RGBrgb(3, 3, 28)
HSLhsl(240, 81%, 6%)
OKLCHoklch(12.4% 0.057 274.3)

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 #03031C 20.31:1 AAA Lc -107.8 Preferred for body text
Black text on #03031C 1.03:1 Fails Lc 0.0 Not readable
#03031C text on white 20.31:1 AAA Lc 105.9 Preferred for body text
#03031C text on black 1.03: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

    #F3F5FC

    oklch(97.1% 0.01 273.4)

  2. Step 100

    100

    #E6E9F7

    oklch(93.6% 0.019 276.3)

  3. Step 200

    200

    #D1D8F3

    oklch(88.5% 0.038 274.1)

  4. Step 300

    300

    #B3BEED

    oklch(80.9% 0.068 274.5)

  5. Step 400

    400

    #8C9BE4

    oklch(70.7% 0.108 274.4)

  6. Step 500

    500

    #7181DC

    oklch(63.2% 0.138 274.3)

  7. Step 600

    600

    #5A68CA

    oklch(55.5% 0.151 274.3)

  8. Step 700

    700

    #4A56AE

    oklch(49% 0.139 274.2)

  9. Step 800

    800

    #3D478D

    oklch(42.7% 0.115 274.4)

  10. Step 900

    900

    #343C71

    oklch(37.7% 0.091 274.8)

  11. Step 950

    950 (this color)

    #03031C

    oklch(12.4% 0.057 274.3)

Export this scale for Tailwind in the Tailwind colors tool

#03031C 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)#00061D0.016
Deuteranopia (no green cones)#00051B0.014
Tritanopia (no blue cones)#00080D0.046
Achromatopsia (no color)#0606060.057

Harmonies

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

Complementary

The opposite hue (180°).

  • #03031C

    #03031C

    oklch(12.4% 0.057 274.3)

  • #090600

    #090600

    oklch(12.3% 0.025 94.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #03031C

    #03031C

    oklch(12.4% 0.057 274.3)

  • #000711

    #000711

    oklch(12.4% 0.031 244)

  • #0B0118

    #0B0118

    oklch(12.4% 0.057 303.4)

Open the analogous palette in the generator

Split complementary

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

  • #03031C

    #03031C

    oklch(12.4% 0.057 274.3)

  • #0D0400

    #0D0400

    oklch(12.2% 0.028 62.7)

  • #040800

    #040800

    oklch(12.4% 0.032 126.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #03031C

    #03031C

    oklch(12.4% 0.057 274.3)

  • #140100

    #140100

    oklch(12.5% 0.045 33.7)

  • #000903

    #000903

    oklch(12.3% 0.029 156.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #03031C

    #03031C

    oklch(12.4% 0.057 274.3)

  • #140005

    #140005

    oklch(12.3% 0.05 2.4)

  • #090600

    #090600

    oklch(12.3% 0.025 94.5)

  • #000907

    #000907

    oklch(12.5% 0.023 181.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #03031C 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.