#313E4F

Closest named color: Onyx (#343A40). oklch(36% 0.034 255.3), rgb(49, 62, 79).

Aa

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

About this color

#313E4F is a dark, muted blue. In OKLCH its lightness is 36%, its chroma 0.034 and its hue 255°. Its hue sits on the cool side of the wheel. The nearest named color is Onyx (#343A40), ΔE 0.026 away. White text reads best on it, at 10.86:1.

Hue familyBlues
Lightnessdark (36%)
Chromamuted (0.034)
Temperaturecool
Nearest nameOnyx (#343A40)
Black text1.93:1
White text10.86:1

Values

HEX#313E4F
RGBrgb(49, 62, 79)
HSLhsl(214, 23%, 25%)
OKLCHoklch(36% 0.034 255.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 #313E4F 10.86:1 AAA Lc -99.0 Preferred for body text
Black text on #313E4F 1.93:1 Fails Lc 8.7 Not readable
#313E4F text on white 10.86:1 AAA Lc 95.2 Preferred for body text
#313E4F text on black 1.93:1 Fails Lc -7.5 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 900.

  1. Step 50

    50

    #F4F5F8

    oklch(97% 0.004 271.4)

  2. Step 100

    100

    #E7EAEF

    oklch(93.6% 0.007 260.7)

  3. Step 200

    200

    #D3DAE3

    oklch(88.6% 0.015 254.6)

  4. Step 300

    300

    #B6C2D1

    oklch(80.9% 0.025 254)

  5. Step 400

    400

    #90A2BA

    oklch(70.6% 0.041 255.7)

  6. Step 500

    500

    #748BA9

    oklch(63% 0.053 255.2)

  7. Step 600

    600

    #5D7595

    oklch(55.6% 0.058 255.8)

  8. Step 700

    700

    #4C627F

    oklch(49% 0.054 255.5)

  9. Step 800

    800

    #3F5067

    oklch(42.7% 0.044 256.1)

  10. Step 900

    900 (this color)

    #313E4F

    oklch(36% 0.034 255.3)

  11. Step 950

    950

    #1F2731

    oklch(27% 0.022 254.2)

Export this scale for Tailwind in the Tailwind colors tool

#313E4F 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)#383F500.012
Deuteranopia (no green cones)#343C4F0.007
Tritanopia (no blue cones)#2842440.030
Achromatopsia (no color)#3D3D3D0.034

Harmonies

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

Complementary

The opposite hue (180°).

  • #313E4F

    #313E4F

    oklch(36% 0.034 255.3)

  • #483B29

    #483B29

    oklch(36.1% 0.034 75.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #313E4F

    #313E4F

    oklch(36% 0.034 255.3)

  • #29414B

    #29414B

    oklch(36% 0.034 226.1)

  • #3B3B4F

    #3B3B4F

    oklch(36.1% 0.034 284.5)

Open the analogous palette in the generator

Split complementary

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

  • #313E4F

    #313E4F

    oklch(36% 0.034 255.3)

  • #4D372E

    #4D372E

    oklch(35.9% 0.035 43.2)

  • #3F3E29

    #3F3E29

    oklch(35.9% 0.034 105.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #313E4F

    #313E4F

    oklch(36% 0.034 255.3)

  • #4E3637

    #4E3637

    oklch(36.1% 0.035 16.2)

  • #35412F

    #35412F

    oklch(35.9% 0.034 135.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #313E4F

    #313E4F

    oklch(36% 0.034 255.3)

  • #4A3641

    #4A3641

    oklch(35.9% 0.033 344.8)

  • #483B29

    #483B29

    oklch(36.1% 0.034 75.4)

  • #2C4339

    #2C4339

    oklch(36% 0.034 165.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #313E4F 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.