#313C8E#313C8E

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

Color values

HEX#313C8E
RGBrgb(49, 60, 142)
HSLhsl(233, 49%, 37%)
HSVhsv(233, 65%, 56%)
CMYKcmyk(65.5%, 57.7%, 0%, 44.3%)
CIE-LABlab(29.00, 22.99, -46.98)
CIE-LCHlch(29.00, 52.30, 296.07°)
OKLaboklab(39.69% 0.0067 -0.135)
OKLCHoklch(39.69% 0.135 272.9)
XYZxyz(7.7633, 5.8370, 26.3035)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313C8E #8E8331
analogous
#316B8E #313C8E #54318E
triadic
#313C8E #8E313C #3C8E31
tetradic
#313C8E #8E316B #8E8331 #318E54
square
#313C8E #8E316B #8E8331 #318E54
split-complementary
#313C8E #8E5431 #6B8E31
monochromatic
#121633 #212961 #313C8E #414FBB #6D78CD

Accessibility & contrast

On white

9.69
#313C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313C8E
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313C8E#FFFFFF#000000##FFFFFF
##313C8E1.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#00408C
Tritanopia (blue-blind)
#00505F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #313c8e;
/* rgb */ color: rgb(49, 60, 142);
/* oklch */ color: oklch(39.7% 0.135 272.9);
Tailwind
colors: {
  custom: {
    50: '#7471b0',
    500: '#313c8e',
    950: '#000000',
  },
}
SCSS
$custom: #313c8e;
$custom-light: #7471b0;
$custom-dark: #000000;
JSON
{
  "hex": "#313c8e",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 142
  },
  "hsl": {
    "h": 232.903,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39686,
    "c": 0.13522,
    "h": 272.9
  },
  "luminance": 0.05838
}

Semantic roles & 50–950 ramp

primary
#313C8E
secondary
#B4AB67
accent
#C850D8
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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