#21012E#21012E

#21012E is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.8% C 0.089 H 314.1°. Best body text is #FFFFFF at 18.95:1 contrast (WCAG AA passes).

Color values

HEX#21012E
RGBrgb(33, 1, 46)
HSLhsl(283, 96%, 9%)
HSVhsv(283, 98%, 18%)
CMYKcmyk(28.3%, 97.8%, 0%, 82%)
CIE-LABlab(4.90, 24.07, -21.78)
CIE-LCHlch(4.90, 32.46, 317.87°)
OKLaboklab(18.78% 0.0623 -0.0642)
OKLCHoklch(18.78% 0.089 314.1)
XYZxyz(1.1311, 0.5423, 2.6293)
Luminance0.0054 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21012E #0E2E01
analogous
#0B012E #21012E #2E0125
triadic
#21012E #2E2101 #012E21
tetradic
#21012E #2E0B01 #0E2E01 #01252E
square
#21012E #2E0B01 #0E2E01 #01252E
split-complementary
#21012E #252E01 #012E0B
monochromatic
#15011E #15011E #21012E #4C026A #7704A6

Accessibility & contrast

On white

18.95
#21012E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#21012E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21012E
18.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21012E#FFFFFF#000000##FFFFFF
##21012E1.0018.951.1118.95
#FFFFFF18.951.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2F
Deuteranopia (green-blind)
#00112D
Tritanopia (blue-blind)
#200A17
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #21012e;
/* rgb */ color: rgb(33, 1, 46);
/* oklch */ color: oklch(18.8% 0.089 314.1);
Tailwind
colors: {
  custom: {
    50: '#5e4667',
    500: '#21012e',
    950: '#000000',
  },
}
SCSS
$custom: #21012e;
$custom-light: #5e4667;
$custom-dark: #000000;
JSON
{
  "hex": "#21012e",
  "rgb": {
    "r": 33,
    "g": 1,
    "b": 46
  },
  "hsl": {
    "h": 282.667,
    "s": 95.745,
    "l": 9.216
  },
  "oklch": {
    "l": 0.18779,
    "c": 0.08949,
    "h": 314.1
  },
  "luminance": 0.00542
}

Semantic roles & 50–950 ramp

primary
#21012E
secondary
#327417
accent
#FF2967
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#040006
muted
#79777A

Preview Lab

Preview with #21012E

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

Preview Lab → · Contrast checker → · Palette generator →

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