#31219A#31219A

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

Color values

HEX#31219A
RGBrgb(49, 33, 154)
HSLhsl(248, 65%, 37%)
HSVhsv(248, 79%, 60%)
CMYKcmyk(68.2%, 78.6%, 0%, 39.6%)
CIE-LABlab(23.91, 43.76, -62.69)
CIE-LCHlch(23.91, 76.45, 304.92°)
OKLaboklab(36.34% 0.0259 -0.1811)
OKLCHoklch(36.34% 0.183 278.1)
XYZxyz(7.6413, 4.0731, 30.9491)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31219A #8A9A21
analogous
#214E9A #31219A #6E219A
triadic
#31219A #9A3121 #219A31
tetradic
#31219A #9A214E #8A9A21 #219A6E
square
#31219A #9A214E #8A9A21 #219A6E
split-complementary
#31219A #9A6E21 #4E9A21
monochromatic
#110B35 #211668 #31219A #412CCC #6B5ADC

Accessibility & contrast

On white

11.57
#31219A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#31219A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31219A
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31219A#FFFFFF#000000##FFFFFF
##31219A1.0011.571.8111.57
#FFFFFF11.571.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31219a;
/* rgb */ color: rgb(49, 33, 154);
/* oklch */ color: oklch(36.3% 0.183 278.1);
Tailwind
colors: {
  custom: {
    50: '#795fb9',
    500: '#31219a',
    950: '#000000',
  },
}
SCSS
$custom: #31219a;
$custom-light: #795fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#31219a",
  "rgb": {
    "r": 49,
    "g": 33,
    "b": 154
  },
  "hsl": {
    "h": 247.934,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36337,
    "c": 0.18292,
    "h": 278.1
  },
  "luminance": 0.04074
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31219A

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

Preview Lab → · Contrast checker → · Palette generator →

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