#313E81#313E81

#313E81 is a dark, moderate blue. Relative luminance 0.057; OKLCH L 39.1% C 0.113 H 271.9°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#313E81
RGBrgb(49, 62, 129)
HSLhsl(230, 45%, 35%)
HSVhsv(230, 62%, 51%)
CMYKcmyk(62%, 51.9%, 0%, 49.4%)
CIE-LABlab(28.60, 16.86, -39.56)
CIE-LCHlch(28.60, 43.01, 293.08°)
OKLaboklab(39.08% 0.0038 -0.1132)
OKLCHoklch(39.08% 0.113 271.9)
XYZxyz(6.9504, 5.6826, 21.4952)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E81 #817431
analogous
#316681 #313E81 #4C3181
triadic
#313E81 #81313E #3E8131
tetradic
#313E81 #813166 #817431 #31814C
square
#313E81 #813166 #817431 #31814C
split-complementary
#313E81 #814C31 #668131
monochromatic
#0F1328 #202955 #313E81 #4253AD #6776C5

Accessibility & contrast

On white

9.83
#313E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#313E81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313E81
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E81#FFFFFF#000000##FFFFFF
##313E811.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4783
Deuteranopia (green-blind)
#094080
Tritanopia (blue-blind)
#004D59
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #313e81;
/* rgb */ color: rgb(49, 62, 129);
/* oklch */ color: oklch(39.1% 0.113 271.9);
Tailwind
colors: {
  custom: {
    50: '#7173a6',
    500: '#313e81',
    950: '#000000',
  },
}
SCSS
$custom: #313e81;
$custom-light: #7173a6;
$custom-dark: #000000;
JSON
{
  "hex": "#313e81",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 129
  },
  "hsl": {
    "h": 230.25,
    "s": 44.944,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39081,
    "c": 0.11327,
    "h": 271.9
  },
  "luminance": 0.05683
}

Semantic roles & 50–950 ramp

primary
#313E81
secondary
#ADA061
accent
#C053D5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #313E81

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

Preview Lab → · Contrast checker → · Palette generator →

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