#313C91#313C91

#313C91 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.9% C 0.140 H 272.8°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#313C91
RGBrgb(49, 60, 145)
HSLhsl(233, 49%, 38%)
HSVhsv(233, 66%, 57%)
CMYKcmyk(66.2%, 58.6%, 0%, 43.1%)
CIE-LABlab(29.23, 24.09, -48.45)
CIE-LCHlch(29.23, 54.10, 296.43°)
OKLaboklab(39.93% 0.0068 -0.1394)
OKLCHoklch(39.93% 0.14 272.8)
XYZxyz(7.9916, 5.9283, 27.5057)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313C91 #918631
analogous
#316C91 #313C91 #563191
triadic
#313C91 #91313C #3C9131
tetradic
#313C91 #91316C #918631 #319156
square
#313C91 #91316C #918631 #319156
split-complementary
#313C91 #915631 #6C9131
monochromatic
#121636 #222963 #313C91 #414FBF #6E79CE

Accessibility & contrast

On white

9.61
#313C91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#313C91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313C91
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313C91#FFFFFF#000000##FFFFFF
##313C911.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004994
Deuteranopia (green-blind)
#00418F
Tritanopia (blue-blind)
#005160
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #313c91;
/* rgb */ color: rgb(49, 60, 145);
/* oklch */ color: oklch(39.9% 0.140 272.8);
Tailwind
colors: {
  custom: {
    50: '#7571b2',
    500: '#313c91',
    950: '#000000',
  },
}
SCSS
$custom: #313c91;
$custom-light: #7571b2;
$custom-dark: #000000;
JSON
{
  "hex": "#313c91",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 145
  },
  "hsl": {
    "h": 233.125,
    "s": 49.485,
    "l": 38.039
  },
  "oklch": {
    "l": 0.39934,
    "c": 0.13954,
    "h": 272.8
  },
  "luminance": 0.05929
}

Semantic roles & 50–950 ramp

primary
#313C91
secondary
#B6AD68
accent
#C94FD9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313C91

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

Preview Lab → · Contrast checker → · Palette generator →

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