#31219B#31219B

#31219B is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.4% C 0.184 H 278.0°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#31219B
RGBrgb(49, 33, 155)
HSLhsl(248, 65%, 37%)
HSVhsv(248, 79%, 61%)
CMYKcmyk(68.4%, 78.7%, 0%, 39.2%)
CIE-LABlab(24.02, 44.08, -63.12)
CIE-LCHlch(24.02, 76.99, 304.93°)
OKLaboklab(36.45% 0.0256 -0.1824)
OKLCHoklch(36.45% 0.184 278)
XYZxyz(7.7250, 4.1066, 31.3895)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31219B #8B9B21
analogous
#214E9B #31219B #6E219B
triadic
#31219B #9B3121 #219B31
tetradic
#31219B #9B214E #8B9B21 #219B6E
square
#31219B #9B214E #8B9B21 #219B6E
split-complementary
#31219B #9B6E21 #4E9B21
monochromatic
#110C36 #211669 #31219B #412CCD #6B5ADC

Accessibility & contrast

On white

11.53
#31219B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#31219B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31219B
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31219B#FFFFFF#000000##FFFFFF
##31219B1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31219b;
/* rgb */ color: rgb(49, 33, 155);
/* oklch */ color: oklch(36.4% 0.184 278.0);
Tailwind
colors: {
  custom: {
    50: '#7960ba',
    500: '#31219b',
    950: '#000000',
  },
}
SCSS
$custom: #31219b;
$custom-light: #7960ba;
$custom-dark: #000000;
JSON
{
  "hex": "#31219b",
  "rgb": {
    "r": 49,
    "g": 33,
    "b": 155
  },
  "hsl": {
    "h": 247.869,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36446,
    "c": 0.18414,
    "h": 278
  },
  "luminance": 0.04107
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31219B

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

Preview Lab → · Contrast checker → · Palette generator →

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