#313C48

Closest named color: Onyx (#343A40). oklch(35.1% 0.026 250.8), rgb(49, 60, 72).

Aa

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

About this color

#313C48 is a dark close to neutral grey. In OKLCH its lightness is 35%, its chroma 0.026. It has too little chroma to lean warm or cool. The nearest named color is Onyx (#343A40), ΔE 0.014 away. White text reads best on it, at 11.22:1.

Hue familyNeutrals
Lightnessdark (35%)
Chromaclose to neutral grey (0.026)
Temperatureneutral
Nearest nameOnyx (#343A40)
Black text1.87:1
White text11.22:1

Values

HEX#313C48
RGBrgb(49, 60, 72)
HSLhsl(211, 19%, 24%)
OKLCHoklch(35.1% 0.026 250.8)

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 #313C48 11.22:1 AAA Lc -99.7 Preferred for body text
Black text on #313C48 1.87:1 Fails Lc 8.0 Not readable
#313C48 text on white 11.22:1 AAA Lc 95.9 Preferred for body text
#313C48 text on black 1.87: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 900.

  1. Step 50

    50

    #F4F5F7

    oklch(97% 0.003 264.5)

  2. Step 100

    100

    #E7EAED

    oklch(93.6% 0.005 247.9)

  3. Step 200

    200

    #D4DAE0

    oklch(88.6% 0.011 247.9)

  4. Step 300

    300

    #B8C2CD

    oklch(81% 0.019 250.6)

  5. Step 400

    400

    #93A2B4

    oklch(70.6% 0.031 253)

  6. Step 500

    500

    #788CA1

    oklch(63.2% 0.039 249.7)

  7. Step 600

    600

    #61768C

    oklch(55.7% 0.042 249.8)

  8. Step 700

    700

    #506377

    oklch(49.2% 0.04 250)

  9. Step 800

    800

    #425161

    oklch(42.8% 0.033 250.3)

  10. Step 900

    900 (this color)

    #313C48

    oklch(35.1% 0.026 250.8)

  11. Step 950

    950

    #21272E

    oklch(27% 0.016 252.4)

Export this scale for Tailwind in the Tailwind colors tool

#313C48 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)#383C490.011
Deuteranopia (no green cones)#353A480.009
Tritanopia (no blue cones)#2A3F400.022
Achromatopsia (no color)#3B3B3B0.026

Harmonies

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

Complementary

The opposite hue (180°).

  • #313C48

    #313C48

    oklch(35.1% 0.026 250.8)

  • #44392C

    #44392C

    oklch(35.2% 0.026 71.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #313C48

    #313C48

    oklch(35.1% 0.026 250.8)

  • #2C3E44

    #2C3E44

    oklch(35.1% 0.025 220.4)

  • #383948

    #383948

    oklch(35% 0.026 282)

Open the analogous palette in the generator

Split complementary

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

  • #313C48

    #313C48

    oklch(35.1% 0.026 250.8)

  • #473731

    #473731

    oklch(35.2% 0.025 41.6)

  • #3E3B2C

    #3E3B2C

    oklch(35.1% 0.025 98.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #313C48

    #313C48

    oklch(35.1% 0.026 250.8)

  • #473537

    #473537

    oklch(35% 0.026 11)

  • #363E30

    #363E30

    oklch(35.2% 0.026 131.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #313C48

    #313C48

    oklch(35.1% 0.026 250.8)

  • #44363F

    #44363F

    oklch(35.1% 0.025 339.7)

  • #44392C

    #44392C

    oklch(35.2% 0.026 71.5)

  • #2F3F36

    #2F3F36

    oklch(35.1% 0.026 160.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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