#313F8D#313F8D

#313F8D is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.2% C 0.130 H 271.7°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#313F8D
RGBrgb(49, 63, 141)
HSLhsl(231, 48%, 37%)
HSVhsv(231, 65%, 55%)
CMYKcmyk(65.2%, 55.3%, 0%, 44.7%)
CIE-LABlab(29.74, 20.59, -45.16)
CIE-LCHlch(29.74, 49.64, 294.51°)
OKLaboklab(40.22% 0.0038 -0.1297)
OKLCHoklch(40.22% 0.13 271.7)
XYZxyz(7.8502, 6.1304, 25.9637)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F8D #8D7F31
analogous
#316D8D #313F8D #51318D
triadic
#313F8D #8D313F #3F8D31
tetradic
#313F8D #8D316D #8D7F31 #318D51
square
#313F8D #8D316D #8D7F31 #318D51
split-complementary
#313F8D #8D5131 #6D8D31
monochromatic
#111632 #212B60 #313F8D #4153BA #6C7BCC

Accessibility & contrast

On white

9.43
#313F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#313F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313F8D
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F8D#FFFFFF#000000##FFFFFF
##313F8D1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#084A90
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#00515F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #313f8d;
/* rgb */ color: rgb(49, 63, 141);
/* oklch */ color: oklch(40.2% 0.130 271.7);
Tailwind
colors: {
  custom: {
    50: '#7373af',
    500: '#313f8d',
    950: '#000000',
  },
}
SCSS
$custom: #313f8d;
$custom-light: #7373af;
$custom-dark: #000000;
JSON
{
  "hex": "#313f8d",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 141
  },
  "hsl": {
    "h": 230.87,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40217,
    "c": 0.12972,
    "h": 271.7
  },
  "luminance": 0.06131
}

Semantic roles & 50–950 ramp

primary
#313F8D
secondary
#B4A866
accent
#C350D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #313F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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