#31219D#31219D

#31219D is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.7% C 0.187 H 277.7°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#31219D
RGBrgb(49, 33, 157)
HSLhsl(248, 65%, 37%)
HSVhsv(248, 79%, 62%)
CMYKcmyk(68.8%, 79%, 0%, 38.4%)
CIE-LABlab(24.24, 44.71, -63.98)
CIE-LCHlch(24.24, 78.05, 304.94°)
OKLaboklab(36.66% 0.0251 -0.1849)
OKLCHoklch(36.66% 0.187 277.7)
XYZxyz(7.8943, 4.1743, 32.2815)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31219D #8D9D21
analogous
#214F9D #31219D #6F219D
triadic
#31219D #9D3121 #219D31
tetradic
#31219D #9D214F #8D9D21 #219D6F
square
#31219D #9D214F #8D9D21 #219D6F
split-complementary
#31219D #9D6F21 #4F9D21
monochromatic
#110C38 #21166A #31219D #412CD0 #6C5CDD

Accessibility & contrast

On white

11.44
#31219D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31219D
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31219D#FFFFFF#000000##FFFFFF
##31219D1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA0
Deuteranopia (green-blind)
#00349B
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #31219d;
/* rgb */ color: rgb(49, 33, 157);
/* oklch */ color: oklch(36.7% 0.187 277.7);
Tailwind
colors: {
  custom: {
    50: '#7960bb',
    500: '#31219d',
    950: '#000000',
  },
}
SCSS
$custom: #31219d;
$custom-light: #7960bb;
$custom-dark: #000000;
JSON
{
  "hex": "#31219d",
  "rgb": {
    "r": 49,
    "g": 33,
    "b": 157
  },
  "hsl": {
    "h": 247.742,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36664,
    "c": 0.18655,
    "h": 277.7
  },
  "luminance": 0.04175
}

Semantic roles & 50–950 ramp

primary
#31219D
secondary
#B4C159
accent
#E840D2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #31219D

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

Preview Lab → · Contrast checker → · Palette generator →

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