#313D91#313D91

#313D91 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.1% C 0.138 H 272.4°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#313D91
RGBrgb(49, 61, 145)
HSLhsl(233, 49%, 38%)
HSVhsv(233, 66%, 57%)
CMYKcmyk(66.2%, 57.9%, 0%, 43.1%)
CIE-LABlab(29.50, 23.41, -48.01)
CIE-LCHlch(29.50, 53.42, 296.00°)
OKLaboklab(40.13% 0.0059 -0.1381)
OKLCHoklch(40.13% 0.138 272.4)
XYZxyz(8.0445, 6.0341, 27.5233)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D91 #918531
analogous
#316D91 #313D91 #553191
triadic
#313D91 #91313D #3D9131
tetradic
#313D91 #91316D #918531 #319155
square
#313D91 #91316D #918531 #319155
split-complementary
#313D91 #915531 #6D9131
monochromatic
#121736 #222A63 #313D91 #4150BF #6E7ACE

Accessibility & contrast

On white

9.52
#313D91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#313D91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313D91
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D91#FFFFFF#000000##FFFFFF
##313D911.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A94
Deuteranopia (green-blind)
#00418F
Tritanopia (blue-blind)
#005161
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #313d91;
/* rgb */ color: rgb(49, 61, 145);
/* oklch */ color: oklch(40.1% 0.138 272.4);
Tailwind
colors: {
  custom: {
    50: '#7472b2',
    500: '#313d91',
    950: '#000000',
  },
}
SCSS
$custom: #313d91;
$custom-light: #7472b2;
$custom-dark: #000000;
JSON
{
  "hex": "#313d91",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 145
  },
  "hsl": {
    "h": 232.5,
    "s": 49.485,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40133,
    "c": 0.13821,
    "h": 272.4
  },
  "luminance": 0.06035
}

Semantic roles & 50–950 ramp

primary
#313D91
secondary
#B6AC68
accent
#C84FD9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #313D91

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

Preview Lab → · Contrast checker → · Palette generator →

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