#313E52#313E52

#313E52 is a dark, muted blue. Relative luminance 0.047; OKLCH L 36.1% C 0.039 H 258.9°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#313E52
RGBrgb(49, 62, 82)
HSLhsl(216, 25%, 26%)
HSVhsv(216, 40%, 32%)
CMYKcmyk(40.2%, 24.4%, 0%, 67.8%)
CIE-LABlab(25.88, 0.51, -13.77)
CIE-LCHlch(25.88, 13.78, 272.11°)
OKLaboklab(36.11% -0.0075 -0.0381)
OKLCHoklch(36.11% 0.039 258.9)
XYZxyz(4.5118, 4.7072, 8.6519)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E52 #524531
analogous
#314E52 #313E52 #343152
triadic
#313E52 #52313E #3E5231
tetradic
#313E52 #52314E #524531 #315234
square
#313E52 #52314E #524531 #315234
split-complementary
#313E52 #523431 #4E5231
monochromatic
#0B0E13 #1A212C #313E52 #485B78 #5F789F

Accessibility & contrast

On white

10.82
#313E52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#313E52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313E52
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E52#FFFFFF#000000##FFFFFF
##313E521.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#373F53
Deuteranopia (green-blind)
#333C52
Tritanopia (blue-blind)
#264245
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #313e52;
/* rgb */ color: rgb(49, 62, 82);
/* oklch */ color: oklch(36.1% 0.039 258.9);
Tailwind
colors: {
  custom: {
    50: '#6a7382',
    500: '#313e52',
    950: '#000000',
  },
}
SCSS
$custom: #313e52;
$custom-light: #6a7382;
$custom-dark: #000000;
JSON
{
  "hex": "#313e52",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 82
  },
  "hsl": {
    "h": 216.364,
    "s": 25.191,
    "l": 25.686
  },
  "oklch": {
    "l": 0.3611,
    "c": 0.03886,
    "h": 258.9
  },
  "luminance": 0.04707
}

Semantic roles & 50–950 ramp

primary
#313E52
secondary
#83745C
accent
#9E66C2
background
#F6F6F7
surface
#EBECEE
border
#C6C7C9
text
#06080A
muted
#7A7B7C

Preview Lab

Preview with #313E52

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

Preview Lab → · Contrast checker → · Palette generator →

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