#31208B#31208B

#31208B is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.6% C 0.165 H 280.6°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#31208B
RGBrgb(49, 32, 139)
HSLhsl(250, 63%, 34%)
HSVhsv(250, 77%, 55%)
CMYKcmyk(64.7%, 77%, 0%, 45.5%)
CIE-LABlab(22.12, 39.54, -56.36)
CIE-LCHlch(22.12, 68.84, 305.05°)
OKLaboklab(34.6% 0.0304 -0.1626)
OKLCHoklch(34.6% 0.165 280.6)
XYZxyz(6.4419, 3.5496, 24.7668)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31208B #7A8B20
analogous
#20448B #31208B #66208B
triadic
#31208B #8B3120 #208B31
tetradic
#31208B #8B2044 #7A8B20 #208B66
square
#31208B #8B2044 #7A8B20 #208B66
split-complementary
#31208B #8B6620 #448B20
monochromatic
#0E0928 #1F1559 #31208B #432BBD #644FD6

Accessibility & contrast

On white

12.28
#31208B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#31208B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31208B
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31208B#FFFFFF#000000##FFFFFF
##31208B1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003189
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #31208b;
/* rgb */ color: rgb(49, 32, 139);
/* oklch */ color: oklch(34.6% 0.165 280.6);
Tailwind
colors: {
  custom: {
    50: '#765eae',
    500: '#31208b',
    950: '#000000',
  },
}
SCSS
$custom: #31208b;
$custom-light: #765eae;
$custom-dark: #000000;
JSON
{
  "hex": "#31208b",
  "rgb": {
    "r": 49,
    "g": 32,
    "b": 139
  },
  "hsl": {
    "h": 249.533,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34604,
    "c": 0.16543,
    "h": 280.6
  },
  "luminance": 0.0355
}

Semantic roles & 50–950 ramp

primary
#31208B
secondary
#A8BA4D
accent
#E642CC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #31208B

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

Preview Lab → · Contrast checker → · Palette generator →

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