#31408F#31408F

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

Color values

HEX#31408F
RGBrgb(49, 64, 143)
HSLhsl(230, 49%, 38%)
HSVhsv(230, 66%, 56%)
CMYKcmyk(65.7%, 55.2%, 0%, 43.9%)
CIE-LABlab(30.16, 20.66, -45.71)
CIE-LCHlch(30.16, 50.16, 294.32°)
OKLaboklab(40.58% 0.0029 -0.1313)
OKLCHoklch(40.58% 0.131 271.3)
XYZxyz(8.0563, 6.3022, 26.7732)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31408F #8F8031
analogous
#316F8F #31408F #51318F
triadic
#31408F #8F3140 #408F31
tetradic
#31408F #8F316F #8F8031 #318F51
square
#31408F #8F316F #8F8031 #318F51
split-complementary
#31408F #8F5131 #6F8F31
monochromatic
#121734 #212C61 #31408F #4154BD #6D7DCD

Accessibility & contrast

On white

9.29
#31408F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#31408F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31408F
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31408F#FFFFFF#000000##FFFFFF
##31408F1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#084B92
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #31408f;
/* rgb */ color: rgb(49, 64, 143);
/* oklch */ color: oklch(40.6% 0.131 271.3);
Tailwind
colors: {
  custom: {
    50: '#7474b0',
    500: '#31408f',
    950: '#000000',
  },
}
SCSS
$custom: #31408f;
$custom-light: #7474b0;
$custom-dark: #000000;
JSON
{
  "hex": "#31408f",
  "rgb": {
    "r": 49,
    "g": 64,
    "b": 143
  },
  "hsl": {
    "h": 230.426,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40583,
    "c": 0.13129,
    "h": 271.3
  },
  "luminance": 0.06303
}

Semantic roles & 50–950 ramp

primary
#31408F
secondary
#B5A867
accent
#C34FD9
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090811
muted
#7B7B80

Preview Lab

Preview with #31408F

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

Preview Lab → · Contrast checker → · Palette generator →

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