#220231#220231

#220231 is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.4% C 0.091 H 312.3°. Best body text is #FFFFFF at 18.73:1 contrast (WCAG AA passes).

Color values

HEX#220231
RGBrgb(34, 2, 49)
HSLhsl(281, 92%, 10%)
HSVhsv(281, 96%, 19%)
CMYKcmyk(30.6%, 95.9%, 0%, 80.8%)
CIE-LABlab(5.47, 25.04, -23.10)
CIE-LCHlch(5.47, 34.07, 317.30°)
OKLaboklab(19.44% 0.0611 -0.0671)
OKLCHoklch(19.44% 0.091 312.3)
XYZxyz(1.2357, 0.6053, 2.9569)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#220231 #113102
analogous
#0A0231 #220231 #310229
triadic
#220231 #312202 #023122
tetradic
#220231 #310A02 #113102 #022931
square
#220231 #310A02 #113102 #022931
split-complementary
#220231 #293102 #02310A
monochromatic
#14011D #14011D #220231 #4B046C #7407A7

Accessibility & contrast

On white

18.73
#220231 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#220231 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #220231
18.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##220231#FFFFFF#000000##FFFFFF
##2202311.0018.731.1218.73
#FFFFFF18.731.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001032
Deuteranopia (green-blind)
#001330
Tritanopia (blue-blind)
#200C19
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #220231;
/* rgb */ color: rgb(34, 2, 49);
/* oklch */ color: oklch(19.4% 0.091 312.3);
Tailwind
colors: {
  custom: {
    50: '#5f4769',
    500: '#220231',
    950: '#000000',
  },
}
SCSS
$custom: #220231;
$custom-light: #5f4769;
$custom-dark: #000000;
JSON
{
  "hex": "#220231",
  "rgb": {
    "r": 34,
    "g": 2,
    "b": 49
  },
  "hsl": {
    "h": 280.851,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.19437,
    "c": 0.09073,
    "h": 312.3
  },
  "luminance": 0.00605
}

Semantic roles & 50–950 ramp

primary
#220231
secondary
#377519
accent
#FF296D
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#050006
muted
#79777A

Preview Lab

Preview with #220231

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

Preview Lab → · Contrast checker → · Palette generator →

#220231 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva