#31208A#31208A

#31208A is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.164 H 280.7°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#31208A
RGBrgb(49, 32, 138)
HSLhsl(250, 62%, 33%)
HSVhsv(250, 77%, 54%)
CMYKcmyk(64.5%, 76.8%, 0%, 45.9%)
CIE-LABlab(22.02, 39.22, -55.90)
CIE-LCHlch(22.02, 68.29, 305.05°)
OKLaboklab(34.5% 0.0306 -0.1613)
OKLCHoklch(34.5% 0.164 280.7)
XYZxyz(6.3691, 3.5205, 24.3837)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31208A #798A20
analogous
#20448A #31208A #66208A
triadic
#31208A #8A3120 #208A31
tetradic
#31208A #8A2044 #798A20 #208A66
square
#31208A #8A2044 #798A20 #208A66
split-complementary
#31208A #8A6620 #448A20
monochromatic
#0E0927 #1F1458 #31208A #432CBC #644ED6

Accessibility & contrast

On white

12.32
#31208A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#31208A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31208A
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31208A#FFFFFF#000000##FFFFFF
##31208A1.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#003188
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #31208a;
/* rgb */ color: rgb(49, 32, 138);
/* oklch */ color: oklch(34.5% 0.164 280.7);
Tailwind
colors: {
  custom: {
    50: '#755ead',
    500: '#31208a',
    950: '#000000',
  },
}
SCSS
$custom: #31208a;
$custom-light: #755ead;
$custom-dark: #000000;
JSON
{
  "hex": "#31208a",
  "rgb": {
    "r": 49,
    "g": 32,
    "b": 138
  },
  "hsl": {
    "h": 249.623,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34499,
    "c": 0.16418,
    "h": 280.7
  },
  "luminance": 0.03521
}

Semantic roles & 50–950 ramp

primary
#31208A
secondary
#A8B94D
accent
#E542CB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #31208A

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

Preview Lab → · Contrast checker → · Palette generator →

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