#05151B

Closest named color: Rich Navy (#001219). oklch(18.5% 0.026 224), rgb(5, 21, 27).

Aa

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

About this color

#05151B is a very dark close to neutral grey. In OKLCH its lightness is 18%, its chroma 0.026. It has too little chroma to lean warm or cool. The nearest named color is Rich Navy (#001219), ΔE 0.017 away. White text reads best on it, at 18.59:1.

Hue familyNeutrals
Lightnessvery dark (18%)
Chromaclose to neutral grey (0.026)
Temperatureneutral
Nearest nameRich Navy (#001219)
Black text1.12:1
White text18.59:1

Values

HEX#05151B
RGBrgb(5, 21, 27)
HSLhsl(196, 69%, 6%)
OKLCHoklch(18.5% 0.026 224)

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 #05151B 18.59:1 AAA Lc -107.2 Preferred for body text
Black text on #05151B 1.12:1 Fails Lc 0.0 Not readable
#05151B text on white 18.59:1 AAA Lc 105.1 Preferred for body text
#05151B text on black 1.12: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

    #F3F6F7

    oklch(97.1% 0.003 219.5)

  2. Step 100

    100

    #E4EBEE

    oklch(93.6% 0.009 225.1)

  3. Step 200

    200

    #CEDCE1

    oklch(88.5% 0.017 221.1)

  4. Step 300

    300

    #ADC5CF

    oklch(80.9% 0.03 224.8)

  5. Step 400

    400

    #80A8B7

    oklch(70.8% 0.049 222.9)

  6. Step 500

    500

    #5F92A5

    oklch(63.1% 0.061 223.5)

  7. Step 600

    600

    #447C91

    oklch(55.6% 0.067 224.5)

  8. Step 700

    700

    #35687B

    oklch(49% 0.063 224.7)

  9. Step 800

    800

    #2C5564

    oklch(42.6% 0.052 224)

  10. Step 900

    900

    #284652

    oklch(37.6% 0.041 225.6)

  11. Step 950

    950 (this color)

    #05151B

    oklch(18.5% 0.026 224)

Export this scale for Tailwind in the Tailwind colors tool

#05151B 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)#12141B0.021
Deuteranopia (no green cones)#0E121B0.017
Tritanopia (no blue cones)#0017170.016
Achromatopsia (no color)#1313130.026

Harmonies

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

Complementary

The opposite hue (180°).

  • #05151B

    #05151B

    oklch(18.5% 0.026 224)

  • #1C0F09

    #1C0F09

    oklch(18.5% 0.025 45.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #05151B

    #05151B

    oklch(18.5% 0.026 224)

  • #041616

    #041616

    oklch(18.4% 0.025 195.2)

  • #0A131E

    #0A131E

    oklch(18.4% 0.026 254)

Open the analogous palette in the generator

Split complementary

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

  • #05151B

    #05151B

    oklch(18.5% 0.026 224)

  • #1D0E0F

    #1D0E0F

    oklch(18.6% 0.026 15.5)

  • #191106

    #191106

    oklch(18.5% 0.025 75.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #05151B

    #05151B

    oklch(18.5% 0.026 224)

  • #1B0E15

    #1B0E15

    oklch(18.5% 0.025 346.4)

  • #141306

    #141306

    oklch(18.4% 0.025 104.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #05151B

    #05151B

    oklch(18.5% 0.026 224)

  • #170F1B

    #170F1B

    oklch(18.5% 0.027 314.1)

  • #1C0F09

    #1C0F09

    oklch(18.5% 0.025 45.6)

  • #0E1509

    #0E1509

    oklch(18.4% 0.026 133)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #05151B 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.