#31209D#31209D

#31209D is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.5% C 0.187 H 277.8°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#31209D
RGBrgb(49, 32, 157)
HSLhsl(248, 66%, 37%)
HSVhsv(248, 80%, 62%)
CMYKcmyk(68.8%, 79.6%, 0%, 38.4%)
CIE-LABlab(24.06, 45.22, -64.27)
CIE-LCHlch(24.06, 78.59, 305.13°)
OKLaboklab(36.54% 0.0256 -0.1857)
OKLCHoklch(36.54% 0.187 277.8)
XYZxyz(7.8670, 4.1196, 32.2723)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31209D #8C9D20
analogous
#204E9D #31209D #70209D
triadic
#31209D #9D3120 #209D31
tetradic
#31209D #9D204E #8C9D20 #209D70
square
#31209D #9D204E #8C9D20 #209D70
split-complementary
#31209D #9D7020 #4E9D20
monochromatic
#110B37 #21166A #31209D #412AD0 #6C5ADD

Accessibility & contrast

On white

11.51
#31209D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#31209D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31209D
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31209D#FFFFFF#000000##FFFFFF
##31209D1.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA0
Deuteranopia (green-blind)
#00349B
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #31209d;
/* rgb */ color: rgb(49, 32, 157);
/* oklch */ color: oklch(36.5% 0.187 277.8);
Tailwind
colors: {
  custom: {
    50: '#7a5fbb',
    500: '#31209d',
    950: '#000000',
  },
}
SCSS
$custom: #31209d;
$custom-light: #7a5fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#31209d",
  "rgb": {
    "r": 49,
    "g": 32,
    "b": 157
  },
  "hsl": {
    "h": 248.16,
    "s": 66.138,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36541,
    "c": 0.18744,
    "h": 277.8
  },
  "luminance": 0.0412
}

Semantic roles & 50–950 ramp

primary
#31209D
secondary
#B3C157
accent
#E93FD2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #31209D

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

Preview Lab → · Contrast checker → · Palette generator →

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