#313F81#313F81

#313F81 is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.3% C 0.112 H 271.4°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#313F81
RGBrgb(49, 63, 129)
HSLhsl(230, 45%, 35%)
HSVhsv(230, 62%, 51%)
CMYKcmyk(62%, 51.2%, 0%, 49.4%)
CIE-LABlab(28.88, 16.18, -39.10)
CIE-LCHlch(28.88, 42.32, 292.47°)
OKLaboklab(39.3% 0.0027 -0.1118)
OKLCHoklch(39.3% 0.112 271.4)
XYZxyz(7.0053, 5.7924, 21.5135)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F81 #817331
analogous
#316781 #313F81 #4B3181
triadic
#313F81 #81313F #3F8131
tetradic
#313F81 #813167 #817331 #31814B
square
#313F81 #813167 #817331 #31814B
split-complementary
#313F81 #814B31 #678131
monochromatic
#0F1428 #202955 #313F81 #4255AD #6778C5

Accessibility & contrast

On white

9.73
#313F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#313F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313F81
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F81#FFFFFF#000000##FFFFFF
##313F811.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4883
Deuteranopia (green-blind)
#0D4180
Tritanopia (blue-blind)
#004E5A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #313f81;
/* rgb */ color: rgb(49, 63, 129);
/* oklch */ color: oklch(39.3% 0.112 271.4);
Tailwind
colors: {
  custom: {
    50: '#7173a6',
    500: '#313f81',
    950: '#000000',
  },
}
SCSS
$custom: #313f81;
$custom-light: #7173a6;
$custom-dark: #000000;
JSON
{
  "hex": "#313f81",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 129
  },
  "hsl": {
    "h": 229.5,
    "s": 44.944,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39298,
    "c": 0.11188,
    "h": 271.4
  },
  "luminance": 0.05793
}

Semantic roles & 50–950 ramp

primary
#313F81
secondary
#AD9F61
accent
#BE53D5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #313F81

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

Preview Lab → · Contrast checker → · Palette generator →

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