#313F8E#313F8E

#313F8E is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.3% C 0.131 H 271.7°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#313F8E
RGBrgb(49, 63, 142)
HSLhsl(231, 49%, 37%)
HSVhsv(231, 65%, 56%)
CMYKcmyk(65.5%, 55.6%, 0%, 44.3%)
CIE-LABlab(29.81, 20.96, -45.66)
CIE-LCHlch(29.81, 50.24, 294.66°)
OKLaboklab(40.3% 0.0038 -0.1311)
OKLCHoklch(40.3% 0.131 271.7)
XYZxyz(7.9250, 6.1603, 26.3574)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F8E #8E8031
analogous
#316D8E #313F8E #52318E
triadic
#313F8E #8E313F #3F8E31
tetradic
#313F8E #8E316D #8E8031 #318E52
square
#313F8E #8E316D #8E8031 #318E52
split-complementary
#313F8E #8E5231 #6D8E31
monochromatic
#121733 #212B61 #313F8E #4153BB #6D7BCD

Accessibility & contrast

On white

9.41
#313F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#313F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313F8E
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F8E#FFFFFF#000000##FFFFFF
##313F8E1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054B91
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#005260
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #313f8e;
/* rgb */ color: rgb(49, 63, 142);
/* oklch */ color: oklch(40.3% 0.131 271.7);
Tailwind
colors: {
  custom: {
    50: '#7473b0',
    500: '#313f8e',
    950: '#000000',
  },
}
SCSS
$custom: #313f8e;
$custom-light: #7473b0;
$custom-dark: #000000;
JSON
{
  "hex": "#313f8e",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 142
  },
  "hsl": {
    "h": 230.968,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40297,
    "c": 0.13119,
    "h": 271.7
  },
  "luminance": 0.06161
}

Semantic roles & 50–950 ramp

primary
#313F8E
secondary
#B4A867
accent
#C450D8
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #313F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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