#313E87#313E87

#313E87 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.5% C 0.122 H 272.0°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#313E87
RGBrgb(49, 62, 135)
HSLhsl(231, 47%, 36%)
HSVhsv(231, 64%, 53%)
CMYKcmyk(63.7%, 54.1%, 0%, 47.1%)
CIE-LABlab(29.02, 19.06, -42.61)
CIE-LCHlch(29.02, 46.68, 294.10°)
OKLaboklab(39.54% 0.0044 -0.1222)
OKLCHoklch(39.54% 0.122 272)
XYZxyz(7.3610, 5.8469, 23.6576)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E87 #877A31
analogous
#316987 #313E87 #4F3187
triadic
#313E87 #87313E #3E8731
tetradic
#313E87 #873169 #877A31 #31874F
square
#313E87 #873169 #877A31 #31874F
split-complementary
#313E87 #874F31 #698731
monochromatic
#10152D #21295A #313E87 #4153B4 #6A78C9

Accessibility & contrast

On white

9.68
#313E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#313E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313E87
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E87#FFFFFF#000000##FFFFFF
##313E871.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11488A
Deuteranopia (green-blind)
#004185
Tritanopia (blue-blind)
#004F5C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #313e87;
/* rgb */ color: rgb(49, 62, 135);
/* oklch */ color: oklch(39.5% 0.122 272.0);
Tailwind
colors: {
  custom: {
    50: '#7273aa',
    500: '#313e87',
    950: '#000000',
  },
}
SCSS
$custom: #313e87;
$custom-light: #7273aa;
$custom-dark: #000000;
JSON
{
  "hex": "#313e87",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 135
  },
  "hsl": {
    "h": 230.93,
    "s": 46.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39539,
    "c": 0.12225,
    "h": 272
  },
  "luminance": 0.05847
}

Semantic roles & 50–950 ramp

primary
#313E87
secondary
#B0A564
accent
#C251D6
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #313E87

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

Preview Lab → · Contrast checker → · Palette generator →

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