#31219E#31219E

#31219E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.8% C 0.188 H 277.6°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#31219E
RGBrgb(49, 33, 158)
HSLhsl(248, 65%, 37%)
HSVhsv(248, 79%, 62%)
CMYKcmyk(69%, 79.1%, 0%, 38%)
CIE-LABlab(24.35, 45.02, -64.41)
CIE-LCHlch(24.35, 78.59, 304.95°)
OKLaboklab(36.77% 0.0248 -0.1861)
OKLCHoklch(36.77% 0.188 277.6)
XYZxyz(7.9800, 4.2086, 32.7329)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31219E #8E9E21
analogous
#21509E #31219E #70219E
triadic
#31219E #9E3121 #219E31
tetradic
#31219E #9E2150 #8E9E21 #219E70
square
#31219E #9E2150 #8E9E21 #219E70
split-complementary
#31219E #9E7021 #509E21
monochromatic
#120C39 #21166B #31219E #412CD1 #6D5CDD

Accessibility & contrast

On white

11.40
#31219E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#31219E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31219E
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31219E#FFFFFF#000000##FFFFFF
##31219E1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA1
Deuteranopia (green-blind)
#00359C
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #31219e;
/* rgb */ color: rgb(49, 33, 158);
/* oklch */ color: oklch(36.8% 0.188 277.6);
Tailwind
colors: {
  custom: {
    50: '#7a60bc',
    500: '#31219e',
    950: '#000000',
  },
}
SCSS
$custom: #31219e;
$custom-light: #7a60bc;
$custom-dark: #000000;
JSON
{
  "hex": "#31219e",
  "rgb": {
    "r": 49,
    "g": 33,
    "b": 158
  },
  "hsl": {
    "h": 247.68,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36773,
    "c": 0.18775,
    "h": 277.6
  },
  "luminance": 0.04209
}

Semantic roles & 50–950 ramp

primary
#31219E
secondary
#B4C159
accent
#E83FD3
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #31219E

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

Preview Lab → · Contrast checker → · Palette generator →

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