#21012A#21012A

#21012A is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.4% C 0.086 H 318.1°. Best body text is #FFFFFF at 19.05:1 contrast (WCAG AA passes).

Color values

HEX#21012A
RGBrgb(33, 1, 42)
HSLhsl(287, 95%, 8%)
HSVhsv(287, 98%, 16%)
CMYKcmyk(21.4%, 97.6%, 0%, 83.5%)
CIE-LABlab(4.63, 22.65, -19.18)
CIE-LCHlch(4.63, 29.68, 319.74°)
OKLaboklab(18.39% 0.0636 -0.0572)
OKLCHoklch(18.39% 0.086 318.1)
XYZxyz(1.0559, 0.5123, 2.2333)
Luminance0.0051 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21012A #0A2A01
analogous
#0C012A #21012A #2A011E
triadic
#21012A #2A2101 #012A21
tetradic
#21012A #2A0C01 #0A2A01 #011E2A
square
#21012A #2A0C01 #0A2A01 #011E2A
split-complementary
#21012A #1E2A01 #012A0C
monochromatic
#17011E #17011E #21012A #500266 #7F04A2

Accessibility & contrast

On white

19.05
#21012A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#21012A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21012A
19.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21012A#FFFFFF#000000##FFFFFF
##21012A1.0019.051.1019.05
#FFFFFF19.051.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2B
Deuteranopia (green-blind)
#021129
Tritanopia (blue-blind)
#210815
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #21012a;
/* rgb */ color: rgb(33, 1, 42);
/* oklch */ color: oklch(18.4% 0.086 318.1);
Tailwind
colors: {
  custom: {
    50: '#5d4664',
    500: '#21012a',
    950: '#000000',
  },
}
SCSS
$custom: #21012a;
$custom-light: #5d4664;
$custom-dark: #000000;
JSON
{
  "hex": "#21012a",
  "rgb": {
    "r": 33,
    "g": 1,
    "b": 42
  },
  "hsl": {
    "h": 286.829,
    "s": 95.349,
    "l": 8.431
  },
  "oklch": {
    "l": 0.18393,
    "c": 0.08554,
    "h": 318.1
  },
  "luminance": 0.00512
}

Semantic roles & 50–950 ramp

primary
#21012A
secondary
#2A7016
accent
#FF2958
background
#F5F3F5
surface
#E9E5EA
border
#C5C1C6
text
#040005
muted
#797779

Preview Lab

Preview with #21012A

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

Preview Lab → · Contrast checker → · Palette generator →

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