#31209A#31209A

#31209A is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.2% C 0.184 H 278.3°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#31209A
RGBrgb(49, 32, 154)
HSLhsl(248, 66%, 36%)
HSVhsv(248, 79%, 60%)
CMYKcmyk(68.2%, 79.2%, 0%, 39.6%)
CIE-LABlab(23.73, 44.28, -62.98)
CIE-LCHlch(23.73, 76.99, 305.11°)
OKLaboklab(36.21% 0.0264 -0.1819)
OKLCHoklch(36.21% 0.184 278.3)
XYZxyz(7.6140, 4.0184, 30.9400)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31209A #899A20
analogous
#204C9A #31209A #6E209A
triadic
#31209A #9A3120 #209A31
tetradic
#31209A #9A204C #899A20 #209A6E
square
#31209A #9A204C #899A20 #209A6E
split-complementary
#31209A #9A6E20 #4C9A20
monochromatic
#110B35 #211567 #31209A #412BCD #6B58DC

Accessibility & contrast

On white

11.64
#31209A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#31209A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31209A
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31209A#FFFFFF#000000##FFFFFF
##31209A1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9D
Deuteranopia (green-blind)
#003398
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #31209a;
/* rgb */ color: rgb(49, 32, 154);
/* oklch */ color: oklch(36.2% 0.184 278.3);
Tailwind
colors: {
  custom: {
    50: '#795fb9',
    500: '#31209a',
    950: '#000000',
  },
}
SCSS
$custom: #31209a;
$custom-light: #795fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#31209a",
  "rgb": {
    "r": 49,
    "g": 32,
    "b": 154
  },
  "hsl": {
    "h": 248.361,
    "s": 65.591,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36212,
    "c": 0.18384,
    "h": 278.3
  },
  "luminance": 0.04019
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31209A

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

Preview Lab → · Contrast checker → · Palette generator →

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