#313E91#313E91

#313E91 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.3% C 0.137 H 272.1°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#313E91
RGBrgb(49, 62, 145)
HSLhsl(232, 49%, 38%)
HSVhsv(232, 66%, 57%)
CMYKcmyk(66.2%, 57.2%, 0%, 43.1%)
CIE-LABlab(29.77, 22.74, -47.58)
CIE-LCHlch(29.77, 52.73, 295.55°)
OKLaboklab(40.33% 0.0049 -0.1368)
OKLCHoklch(40.33% 0.137 272.1)
XYZxyz(8.0984, 6.1418, 27.5413)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E91 #918431
analogous
#316E91 #313E91 #543191
triadic
#313E91 #91313E #3E9131
tetradic
#313E91 #91316E #918431 #319154
square
#313E91 #91316E #918431 #319154
split-complementary
#313E91 #915431 #6E9131
monochromatic
#121736 #222A63 #313E91 #4152BF #6E7BCE

Accessibility & contrast

On white

9.42
#313E91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#313E91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313E91
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E91#FFFFFF#000000##FFFFFF
##313E911.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B94
Deuteranopia (green-blind)
#00428F
Tritanopia (blue-blind)
#005261
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #313e91;
/* rgb */ color: rgb(49, 62, 145);
/* oklch */ color: oklch(40.3% 0.137 272.1);
Tailwind
colors: {
  custom: {
    50: '#7473b2',
    500: '#313e91',
    950: '#000000',
  },
}
SCSS
$custom: #313e91;
$custom-light: #7473b2;
$custom-dark: #000000;
JSON
{
  "hex": "#313e91",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 145
  },
  "hsl": {
    "h": 231.875,
    "s": 49.485,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40334,
    "c": 0.13687,
    "h": 272.1
  },
  "luminance": 0.06143
}

Semantic roles & 50–950 ramp

primary
#313E91
secondary
#B6AB68
accent
#C64FD9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #313E91

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

Preview Lab → · Contrast checker → · Palette generator →

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