#31408E#31408E

#31408E is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.5% C 0.130 H 271.3°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#31408E
RGBrgb(49, 64, 142)
HSLhsl(230, 49%, 37%)
HSVhsv(230, 65%, 56%)
CMYKcmyk(65.5%, 54.9%, 0%, 44.3%)
CIE-LABlab(30.09, 20.29, -45.21)
CIE-LCHlch(30.09, 49.56, 294.17°)
OKLaboklab(40.5% 0.0028 -0.1298)
OKLCHoklch(40.5% 0.13 271.3)
XYZxyz(7.9809, 6.2721, 26.3760)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31408E #8E7F31
analogous
#316E8E #31408E #51318E
triadic
#31408E #8E3140 #408E31
tetradic
#31408E #8E316E #8E7F31 #318E51
square
#31408E #8E316E #8E7F31 #318E51
split-complementary
#31408E #8E5131 #6E8E31
monochromatic
#121733 #212B61 #31408E #4155BB #6D7CCD

Accessibility & contrast

On white

9.31
#31408E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#31408E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31408E
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31408E#FFFFFF#000000##FFFFFF
##31408E1.009.312.259.31
#FFFFFF9.311.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4B91
Deuteranopia (green-blind)
#00438C
Tritanopia (blue-blind)
#005260
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #31408e;
/* rgb */ color: rgb(49, 64, 142);
/* oklch */ color: oklch(40.5% 0.130 271.3);
Tailwind
colors: {
  custom: {
    50: '#7474b0',
    500: '#31408e',
    950: '#000000',
  },
}
SCSS
$custom: #31408e;
$custom-light: #7474b0;
$custom-dark: #000000;
JSON
{
  "hex": "#31408e",
  "rgb": {
    "r": 49,
    "g": 64,
    "b": 142
  },
  "hsl": {
    "h": 230.323,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40504,
    "c": 0.12983,
    "h": 271.3
  },
  "luminance": 0.06273
}

Semantic roles & 50–950 ramp

primary
#31408E
secondary
#B4A867
accent
#C250D8
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #31408E

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

Preview Lab → · Contrast checker → · Palette generator →

#31408E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva