#313D52#313D52

#313D52 is a dark, muted blue. Relative luminance 0.046; OKLCH L 35.9% C 0.040 H 261.4°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#313D52
RGBrgb(49, 61, 82)
HSLhsl(218, 25%, 26%)
HSVhsv(218, 40%, 32%)
CMYKcmyk(40.2%, 25.6%, 0%, 67.8%)
CIE-LABlab(25.56, 1.17, -14.27)
CIE-LCHlch(25.56, 14.31, 274.69°)
OKLaboklab(35.86% -0.006 -0.0395)
OKLCHoklch(35.86% 0.04 261.4)
XYZxyz(4.4579, 4.5994, 8.6339)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D52 #524631
analogous
#314D52 #313D52 #353152
triadic
#313D52 #52313D #3D5231
tetradic
#313D52 #52314D #524631 #315235
square
#313D52 #52314D #524631 #315235
split-complementary
#313D52 #523531 #4D5231
monochromatic
#0B0E13 #1A212C #313D52 #485978 #5F769F

Accessibility & contrast

On white

10.94
#313D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#313D52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313D52
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D52#FFFFFF#000000##FFFFFF
##313D521.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#363E53
Deuteranopia (green-blind)
#323B52
Tritanopia (blue-blind)
#274144
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #313d52;
/* rgb */ color: rgb(49, 61, 82);
/* oklch */ color: oklch(35.9% 0.040 261.4);
Tailwind
colors: {
  custom: {
    50: '#6a7282',
    500: '#313d52',
    950: '#000000',
  },
}
SCSS
$custom: #313d52;
$custom-light: #6a7282;
$custom-dark: #000000;
JSON
{
  "hex": "#313d52",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 82
  },
  "hsl": {
    "h": 218.182,
    "s": 25.191,
    "l": 25.686
  },
  "oklch": {
    "l": 0.35858,
    "c": 0.03999,
    "h": 261.4
  },
  "luminance": 0.046
}

Semantic roles & 50–950 ramp

primary
#313D52
secondary
#83755C
accent
#A066C2
background
#F6F6F7
surface
#EBECEE
border
#C6C7C9
text
#06070A
muted
#7A7A7C

Preview Lab

Preview with #313D52

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#313D52 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva