#313D8B#313D8B

#313D8B is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.6% C 0.130 H 272.5°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#313D8B
RGBrgb(49, 61, 139)
HSLhsl(232, 48%, 37%)
HSVhsv(232, 65%, 55%)
CMYKcmyk(64.7%, 56.1%, 0%, 45.5%)
CIE-LABlab(29.04, 21.21, -45.06)
CIE-LCHlch(29.04, 49.80, 295.21°)
OKLaboklab(39.65% 0.0056 -0.1294)
OKLCHoklch(39.65% 0.13 272.5)
XYZxyz(7.5940, 5.8539, 25.1508)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D8B #8B7F31
analogous
#316A8B #313D8B #52318B
triadic
#313D8B #8B313D #3D8B31
tetradic
#313D8B #8B316A #8B7F31 #318B52
square
#313D8B #8B316A #8B7F31 #318B52
split-complementary
#313D8B #8B5231 #6A8B31
monochromatic
#111531 #21295E #313D8B #4151B8 #6B78CB

Accessibility & contrast

On white

9.67
#313D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313D8B
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D8B#FFFFFF#000000##FFFFFF
##313D8B1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03498E
Deuteranopia (green-blind)
#004189
Tritanopia (blue-blind)
#004F5E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #313d8b;
/* rgb */ color: rgb(49, 61, 139);
/* oklch */ color: oklch(39.6% 0.130 272.5);
Tailwind
colors: {
  custom: {
    50: '#7372ad',
    500: '#313d8b',
    950: '#000000',
  },
}
SCSS
$custom: #313d8b;
$custom-light: #7372ad;
$custom-dark: #000000;
JSON
{
  "hex": "#313d8b",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 139
  },
  "hsl": {
    "h": 232,
    "s": 47.872,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39646,
    "c": 0.12951,
    "h": 272.5
  },
  "luminance": 0.05855
}

Semantic roles & 50–950 ramp

primary
#313D8B
secondary
#B2A865
accent
#C550D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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