#313C81#313C81

#313C81 is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.7% C 0.116 H 273.0°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#313C81
RGBrgb(49, 60, 129)
HSLhsl(232, 45%, 35%)
HSVhsv(232, 62%, 51%)
CMYKcmyk(62%, 53.5%, 0%, 49.4%)
CIE-LABlab(28.03, 18.22, -40.47)
CIE-LCHlch(28.03, 44.39, 294.24°)
OKLaboklab(38.65% 0.006 -0.1159)
OKLCHoklch(38.65% 0.116 273)
XYZxyz(6.8436, 5.4691, 21.4596)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313C81 #817631
analogous
#316481 #313C81 #4E3181
triadic
#313C81 #81313C #3C8131
tetradic
#313C81 #813164 #817631 #31814E
square
#313C81 #813164 #817631 #31814E
split-complementary
#313C81 #814E31 #648131
monochromatic
#0F1328 #202755 #313C81 #4251AD #6774C5

Accessibility & contrast

On white

10.03
#313C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#313C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313C81
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313C81#FFFFFF#000000##FFFFFF
##313C811.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154683
Deuteranopia (green-blind)
#003F80
Tritanopia (blue-blind)
#004C58
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313c81;
/* rgb */ color: rgb(49, 60, 129);
/* oklch */ color: oklch(38.7% 0.116 273.0);
Tailwind
colors: {
  custom: {
    50: '#7171a6',
    500: '#313c81',
    950: '#000000',
  },
}
SCSS
$custom: #313c81;
$custom-light: #7171a6;
$custom-dark: #000000;
JSON
{
  "hex": "#313c81",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 129
  },
  "hsl": {
    "h": 231.75,
    "s": 44.944,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38654,
    "c": 0.11606,
    "h": 273
  },
  "luminance": 0.0547
}

Semantic roles & 50–950 ramp

primary
#313C81
secondary
#ADA261
accent
#C353D5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #313C81

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

Preview Lab → · Contrast checker → · Palette generator →

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