#31219F#31219F

#31219F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.9% C 0.189 H 277.5°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#31219F
RGBrgb(49, 33, 159)
HSLhsl(248, 66%, 38%)
HSVhsv(248, 79%, 62%)
CMYKcmyk(69.2%, 79.2%, 0%, 37.6%)
CIE-LABlab(24.46, 45.33, -64.84)
CIE-LCHlch(24.46, 79.12, 304.96°)
OKLaboklab(36.88% 0.0245 -0.1873)
OKLCHoklch(36.88% 0.189 277.5)
XYZxyz(8.0665, 4.2432, 33.1881)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31219F #8F9F21
analogous
#21509F #31219F #70219F
triadic
#31219F #9F3121 #219F31
tetradic
#31219F #9F2150 #8F9F21 #219F70
square
#31219F #9F2150 #8F9F21 #219F70
split-complementary
#31219F #9F7021 #509F21
monochromatic
#120C3A #21166C #31219F #412CD2 #6D5DDD

Accessibility & contrast

On white

11.36
#31219F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#31219F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31219F
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31219F#FFFFFF#000000##FFFFFF
##31219F1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA3
Deuteranopia (green-blind)
#00359D
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #31219f;
/* rgb */ color: rgb(49, 33, 159);
/* oklch */ color: oklch(36.9% 0.189 277.5);
Tailwind
colors: {
  custom: {
    50: '#7a60bd',
    500: '#31219f',
    950: '#000000',
  },
}
SCSS
$custom: #31219f;
$custom-light: #7a60bd;
$custom-dark: #000000;
JSON
{
  "hex": "#31219f",
  "rgb": {
    "r": 49,
    "g": 33,
    "b": 159
  },
  "hsl": {
    "h": 247.619,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36883,
    "c": 0.18895,
    "h": 277.5
  },
  "luminance": 0.04244
}

Semantic roles & 50–950 ramp

primary
#31219F
secondary
#B5C25A
accent
#E93FD3
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #31219F

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

Preview Lab → · Contrast checker → · Palette generator →

#31219F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva