#31408C#31408C

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

Color values

HEX#31408C
RGBrgb(49, 64, 140)
HSLhsl(230, 48%, 37%)
HSVhsv(230, 65%, 55%)
CMYKcmyk(65%, 54.3%, 0%, 45.1%)
CIE-LABlab(29.94, 19.55, -44.22)
CIE-LCHlch(29.94, 48.35, 293.85°)
OKLaboklab(40.35% 0.0027 -0.1269)
OKLCHoklch(40.35% 0.127 271.2)
XYZxyz(7.8321, 6.2125, 25.5923)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31408C #8C7D31
analogous
#316E8C #31408C #50318C
triadic
#31408C #8C3140 #408C31
tetradic
#31408C #8C316E #8C7D31 #318C50
square
#31408C #8C316E #8C7D31 #318C50
split-complementary
#31408C #8C5031 #6E8C31
monochromatic
#111731 #212B5F #31408C #4155B9 #6C7CCC

Accessibility & contrast

On white

9.36
#31408C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#31408C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31408C
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31408C#FFFFFF#000000##FFFFFF
##31408C1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4B8F
Deuteranopia (green-blind)
#00438A
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #31408c;
/* rgb */ color: rgb(49, 64, 140);
/* oklch */ color: oklch(40.3% 0.127 271.2);
Tailwind
colors: {
  custom: {
    50: '#7374ae',
    500: '#31408c',
    950: '#000000',
  },
}
SCSS
$custom: #31408c;
$custom-light: #7374ae;
$custom-dark: #000000;
JSON
{
  "hex": "#31408c",
  "rgb": {
    "r": 49,
    "g": 64,
    "b": 140
  },
  "hsl": {
    "h": 230.11,
    "s": 48.148,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40347,
    "c": 0.12691,
    "h": 271.2
  },
  "luminance": 0.06213
}

Semantic roles & 50–950 ramp

primary
#31408C
secondary
#B3A666
accent
#C150D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #31408C

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

Preview Lab → · Contrast checker → · Palette generator →

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