#313C87#313C87

#313C87 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.1% C 0.125 H 272.9°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#313C87
RGBrgb(49, 60, 135)
HSLhsl(232, 47%, 36%)
HSVhsv(232, 64%, 53%)
CMYKcmyk(63.7%, 55.6%, 0%, 47.1%)
CIE-LABlab(28.47, 20.42, -43.51)
CIE-LCHlch(28.47, 48.06, 295.14°)
OKLaboklab(39.12% 0.0064 -0.1248)
OKLCHoklch(39.12% 0.125 272.9)
XYZxyz(7.2542, 5.6334, 23.6220)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313C87 #877C31
analogous
#316787 #313C87 #513187
triadic
#313C87 #87313C #3C8731
tetradic
#313C87 #873167 #877C31 #318751
square
#313C87 #873167 #877C31 #318751
split-complementary
#313C87 #875131 #678731
monochromatic
#10142D #21285A #313C87 #4150B4 #6A76C9

Accessibility & contrast

On white

9.87
#313C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#313C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313C87
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313C87#FFFFFF#000000##FFFFFF
##313C871.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09478A
Deuteranopia (green-blind)
#003F85
Tritanopia (blue-blind)
#004E5B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #313c87;
/* rgb */ color: rgb(49, 60, 135);
/* oklch */ color: oklch(39.1% 0.125 272.9);
Tailwind
colors: {
  custom: {
    50: '#7271aa',
    500: '#313c87',
    950: '#000000',
  },
}
SCSS
$custom: #313c87;
$custom-light: #7271aa;
$custom-dark: #000000;
JSON
{
  "hex": "#313c87",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 135
  },
  "hsl": {
    "h": 232.326,
    "s": 46.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39122,
    "c": 0.12501,
    "h": 272.9
  },
  "luminance": 0.05634
}

Semantic roles & 50–950 ramp

primary
#313C87
secondary
#B0A664
accent
#C551D6
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313C87

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

Preview Lab → · Contrast checker → · Palette generator →

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