#31219C#31219C

#31219C is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.6% C 0.185 H 277.9°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#31219C
RGBrgb(49, 33, 156)
HSLhsl(248, 65%, 37%)
HSVhsv(248, 79%, 61%)
CMYKcmyk(68.6%, 78.8%, 0%, 38.8%)
CIE-LABlab(24.13, 44.39, -63.55)
CIE-LCHlch(24.13, 77.52, 304.94°)
OKLaboklab(36.56% 0.0253 -0.1836)
OKLCHoklch(36.56% 0.185 277.9)
XYZxyz(7.8093, 4.1403, 31.8337)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31219C #8C9C21
analogous
#214F9C #31219C #6F219C
triadic
#31219C #9C3121 #219C31
tetradic
#31219C #9C214F #8C9C21 #219C6F
square
#31219C #9C214F #8C9C21 #219C6F
split-complementary
#31219C #9C6F21 #4F9C21
monochromatic
#110C37 #211669 #31219C #412CCF #6C5BDC

Accessibility & contrast

On white

11.49
#31219C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#31219C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31219C
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31219C#FFFFFF#000000##FFFFFF
##31219C1.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31219c;
/* rgb */ color: rgb(49, 33, 156);
/* oklch */ color: oklch(36.6% 0.185 277.9);
Tailwind
colors: {
  custom: {
    50: '#7960ba',
    500: '#31219c',
    950: '#000000',
  },
}
SCSS
$custom: #31219c;
$custom-light: #7960ba;
$custom-dark: #000000;
JSON
{
  "hex": "#31219c",
  "rgb": {
    "r": 49,
    "g": 33,
    "b": 156
  },
  "hsl": {
    "h": 247.805,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36555,
    "c": 0.18534,
    "h": 277.9
  },
  "luminance": 0.04141
}

Semantic roles & 50–950 ramp

primary
#31219C
secondary
#B3C158
accent
#E840D2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #31219C

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

Preview Lab → · Contrast checker → · Palette generator →

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