#313B91#313B91

#313B91 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.7% C 0.141 H 273.1°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#313B91
RGBrgb(49, 59, 145)
HSLhsl(234, 49%, 38%)
HSVhsv(234, 66%, 57%)
CMYKcmyk(66.2%, 59.3%, 0%, 43.1%)
CIE-LABlab(28.97, 24.75, -48.88)
CIE-LCHlch(28.97, 54.79, 296.86°)
OKLaboklab(39.74% 0.0077 -0.1406)
OKLCHoklch(39.74% 0.141 273.1)
XYZxyz(7.9397, 5.8245, 27.4884)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B91 #918731
analogous
#316B91 #313B91 #573191
triadic
#313B91 #91313B #3B9131
tetradic
#313B91 #91316B #918731 #319157
square
#313B91 #91316B #918731 #319157
split-complementary
#313B91 #915731 #6B9131
monochromatic
#121636 #222863 #313B91 #414EBF #6E78CE

Accessibility & contrast

On white

9.70
#313B91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313B91
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B91#FFFFFF#000000##FFFFFF
##313B911.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004994
Deuteranopia (green-blind)
#00408F
Tritanopia (blue-blind)
#005060
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #313b91;
/* rgb */ color: rgb(49, 59, 145);
/* oklch */ color: oklch(39.7% 0.141 273.1);
Tailwind
colors: {
  custom: {
    50: '#7570b2',
    500: '#313b91',
    950: '#000000',
  },
}
SCSS
$custom: #313b91;
$custom-light: #7570b2;
$custom-dark: #000000;
JSON
{
  "hex": "#313b91",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 145
  },
  "hsl": {
    "h": 233.75,
    "s": 49.485,
    "l": 38.039
  },
  "oklch": {
    "l": 0.39736,
    "c": 0.14086,
    "h": 273.1
  },
  "luminance": 0.05825
}

Semantic roles & 50–950 ramp

primary
#313B91
secondary
#B6AE68
accent
#CB4FD9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313B91

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

Preview Lab → · Contrast checker → · Palette generator →

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