#313E8B#313E8B

#313E8B is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.9% C 0.128 H 272.1°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#313E8B
RGBrgb(49, 62, 139)
HSLhsl(231, 48%, 37%)
HSVhsv(231, 65%, 55%)
CMYKcmyk(64.7%, 55.4%, 0%, 45.5%)
CIE-LABlab(29.32, 20.53, -44.61)
CIE-LCHlch(29.32, 49.11, 294.72°)
OKLaboklab(39.85% 0.0046 -0.1281)
OKLCHoklch(39.85% 0.128 272.1)
XYZxyz(7.6479, 5.9616, 25.1688)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E8B #8B7E31
analogous
#316B8B #313E8B #51318B
triadic
#313E8B #8B313E #3E8B31
tetradic
#313E8B #8B316B #8B7E31 #318B51
square
#313E8B #8B316B #8B7E31 #318B51
split-complementary
#313E8B #8B5131 #6B8B31
monochromatic
#111631 #212A5E #313E8B #4152B8 #6B79CB

Accessibility & contrast

On white

9.58
#313E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313E8B
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E8B#FFFFFF#000000##FFFFFF
##313E8B1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08498E
Deuteranopia (green-blind)
#004189
Tritanopia (blue-blind)
#00505E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #313e8b;
/* rgb */ color: rgb(49, 62, 139);
/* oklch */ color: oklch(39.9% 0.128 272.1);
Tailwind
colors: {
  custom: {
    50: '#7373ad',
    500: '#313e8b',
    950: '#000000',
  },
}
SCSS
$custom: #313e8b;
$custom-light: #7373ad;
$custom-dark: #000000;
JSON
{
  "hex": "#313e8b",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 139
  },
  "hsl": {
    "h": 231.333,
    "s": 47.872,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39852,
    "c": 0.12815,
    "h": 272.1
  },
  "luminance": 0.05962
}

Semantic roles & 50–950 ramp

primary
#313E8B
secondary
#B2A765
accent
#C450D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #313E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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