#313D8D#313D8D

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

Color values

HEX#313D8D
RGBrgb(49, 61, 141)
HSLhsl(232, 48%, 37%)
HSVhsv(232, 65%, 55%)
CMYKcmyk(65.2%, 56.7%, 0%, 44.7%)
CIE-LABlab(29.19, 21.95, -46.05)
CIE-LCHlch(29.19, 51.01, 295.48°)
OKLaboklab(39.81% 0.0057 -0.1323)
OKLCHoklch(39.81% 0.132 272.5)
XYZxyz(7.7415, 5.9129, 25.9275)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D8D #8D8131
analogous
#316B8D #313D8D #53318D
triadic
#313D8D #8D313D #3D8D31
tetradic
#313D8D #8D316B #8D8131 #318D53
square
#313D8D #8D316B #8D8131 #318D53
split-complementary
#313D8D #8D5331 #6B8D31
monochromatic
#111632 #212960 #313D8D #4151BA #6C79CC

Accessibility & contrast

On white

9.62
#313D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#313D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313D8D
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D8D#FFFFFF#000000##FFFFFF
##313D8D1.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004990
Deuteranopia (green-blind)
#00418B
Tritanopia (blue-blind)
#00505F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #313d8d;
/* rgb */ color: rgb(49, 61, 141);
/* oklch */ color: oklch(39.8% 0.132 272.5);
Tailwind
colors: {
  custom: {
    50: '#7472af',
    500: '#313d8d',
    950: '#000000',
  },
}
SCSS
$custom: #313d8d;
$custom-light: #7472af;
$custom-dark: #000000;
JSON
{
  "hex": "#313d8d",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 141
  },
  "hsl": {
    "h": 232.174,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39807,
    "c": 0.13242,
    "h": 272.5
  },
  "luminance": 0.05914
}

Semantic roles & 50–950 ramp

primary
#313D8D
secondary
#B4A966
accent
#C650D8
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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