#31208D#31208D

#31208D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.168 H 280.2°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#31208D
RGBrgb(49, 32, 141)
HSLhsl(249, 63%, 34%)
HSVhsv(249, 77%, 55%)
CMYKcmyk(65.2%, 77.3%, 0%, 44.7%)
CIE-LABlab(22.33, 40.17, -57.26)
CIE-LCHlch(22.33, 69.95, 305.05°)
OKLaboklab(34.82% 0.0298 -0.1652)
OKLCHoklch(34.82% 0.168 280.2)
XYZxyz(6.5893, 3.6086, 25.5434)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31208D #7C8D20
analogous
#20468D #31208D #68208D
triadic
#31208D #8D3120 #208D31
tetradic
#31208D #8D2046 #7C8D20 #208D68
square
#31208D #8D2046 #7C8D20 #208D68
split-complementary
#31208D #8D6820 #468D20
monochromatic
#0E0929 #20155B #31208D #422BBF #6550D7

Accessibility & contrast

On white

12.20
#31208D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#31208D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31208D
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31208D#FFFFFF#000000##FFFFFF
##31208D1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00318B
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #31208d;
/* rgb */ color: rgb(49, 32, 141);
/* oklch */ color: oklch(34.8% 0.168 280.2);
Tailwind
colors: {
  custom: {
    50: '#765eaf',
    500: '#31208d',
    950: '#000000',
  },
}
SCSS
$custom: #31208d;
$custom-light: #765eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#31208d",
  "rgb": {
    "r": 49,
    "g": 32,
    "b": 141
  },
  "hsl": {
    "h": 249.358,
    "s": 63.006,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34815,
    "c": 0.16792,
    "h": 280.2
  },
  "luminance": 0.03609
}

Semantic roles & 50–950 ramp

primary
#31208D
secondary
#AABA4E
accent
#E642CC
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #31208D

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

Preview Lab → · Contrast checker → · Palette generator →

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