#31408D#31408D

#31408D is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.4% C 0.128 H 271.2°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#31408D
RGBrgb(49, 64, 141)
HSLhsl(230, 48%, 37%)
HSVhsv(230, 65%, 55%)
CMYKcmyk(65.2%, 54.6%, 0%, 44.7%)
CIE-LABlab(30.02, 19.92, -44.71)
CIE-LCHlch(30.02, 48.95, 294.01°)
OKLaboklab(40.42% 0.0028 -0.1283)
OKLCHoklch(40.42% 0.128 271.2)
XYZxyz(7.9061, 6.2422, 25.9824)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31408D #8D7E31
analogous
#316E8D #31408D #50318D
triadic
#31408D #8D3140 #408D31
tetradic
#31408D #8D316E #8D7E31 #318D50
square
#31408D #8D316E #8D7E31 #318D50
split-complementary
#31408D #8D5031 #6E8D31
monochromatic
#111732 #212B60 #31408D #4155BA #6C7CCC

Accessibility & contrast

On white

9.34
#31408D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31408D
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31408D#FFFFFF#000000##FFFFFF
##31408D1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31408d;
/* rgb */ color: rgb(49, 64, 141);
/* oklch */ color: oklch(40.4% 0.128 271.2);
Tailwind
colors: {
  custom: {
    50: '#7374af',
    500: '#31408d',
    950: '#000000',
  },
}
SCSS
$custom: #31408d;
$custom-light: #7374af;
$custom-dark: #000000;
JSON
{
  "hex": "#31408d",
  "rgb": {
    "r": 49,
    "g": 64,
    "b": 141
  },
  "hsl": {
    "h": 230.217,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40425,
    "c": 0.12837,
    "h": 271.2
  },
  "luminance": 0.06243
}

Semantic roles & 50–950 ramp

primary
#31408D
secondary
#B4A766
accent
#C250D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #31408D

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

Preview Lab → · Contrast checker → · Palette generator →

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