#31209B#31209B

#31209B is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.3% C 0.185 H 278.1°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#31209B
RGBrgb(49, 32, 155)
HSLhsl(248, 66%, 37%)
HSVhsv(248, 79%, 61%)
CMYKcmyk(68.4%, 79.4%, 0%, 39.2%)
CIE-LABlab(23.84, 44.59, -63.41)
CIE-LCHlch(23.84, 77.52, 305.11°)
OKLaboklab(36.32% 0.0261 -0.1832)
OKLCHoklch(36.32% 0.185 278.1)
XYZxyz(7.6976, 4.0519, 31.3804)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31209B #8A9B20
analogous
#204D9B #31209B #6F209B
triadic
#31209B #9B3120 #209B31
tetradic
#31209B #9B204D #8A9B20 #209B6F
square
#31209B #9B204D #8A9B20 #209B6F
split-complementary
#31209B #9B6F20 #4D9B20
monochromatic
#110B36 #211668 #31209B #412ACE #6B59DD

Accessibility & contrast

On white

11.60
#31209B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#31209B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31209B
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31209B#FFFFFF#000000##FFFFFF
##31209B1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9E
Deuteranopia (green-blind)
#003499
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #31209b;
/* rgb */ color: rgb(49, 32, 155);
/* oklch */ color: oklch(36.3% 0.185 278.1);
Tailwind
colors: {
  custom: {
    50: '#795fba',
    500: '#31209b',
    950: '#000000',
  },
}
SCSS
$custom: #31209b;
$custom-light: #795fba;
$custom-dark: #000000;
JSON
{
  "hex": "#31209b",
  "rgb": {
    "r": 49,
    "g": 32,
    "b": 155
  },
  "hsl": {
    "h": 248.293,
    "s": 65.775,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36321,
    "c": 0.18504,
    "h": 278.1
  },
  "luminance": 0.04053
}

Semantic roles & 50–950 ramp

primary
#31209B
secondary
#B2C156
accent
#E93FD1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #31209B

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

Preview Lab → · Contrast checker → · Palette generator →

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