#21012C#21012C

#21012C is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.6% C 0.088 H 316.1°. Best body text is #FFFFFF at 19.00:1 contrast (WCAG AA passes).

Color values

HEX#21012C
RGBrgb(33, 1, 44)
HSLhsl(285, 96%, 9%)
HSVhsv(285, 98%, 17%)
CMYKcmyk(25%, 97.7%, 0%, 82.7%)
CIE-LABlab(4.76, 23.36, -20.49)
CIE-LCHlch(4.76, 31.08, 318.75°)
OKLaboklab(18.58% 0.063 -0.0607)
OKLCHoklch(18.58% 0.088 316.1)
XYZxyz(1.0926, 0.5269, 2.4265)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21012C #0C2C01
analogous
#0C012C #21012C #2C0122
triadic
#21012C #2C2101 #012C21
tetradic
#21012C #2C0C01 #0C2C01 #01222C
square
#21012C #2C0C01 #0C2C01 #01222C
split-complementary
#21012C #222C01 #012C0C
monochromatic
#16011E #16011E #21012C #4E0268 #7B04A4

Accessibility & contrast

On white

19.00
#21012C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21012C
19.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21012C#FFFFFF#000000##FFFFFF
##21012C1.0019.001.1119.00
#FFFFFF19.001.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF19.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2D
Deuteranopia (green-blind)
#00112B
Tritanopia (blue-blind)
#200916
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #21012c;
/* rgb */ color: rgb(33, 1, 44);
/* oklch */ color: oklch(18.6% 0.088 316.1);
Tailwind
colors: {
  custom: {
    50: '#5e4665',
    500: '#21012c',
    950: '#000000',
  },
}
SCSS
$custom: #21012c;
$custom-light: #5e4665;
$custom-dark: #000000;
JSON
{
  "hex": "#21012c",
  "rgb": {
    "r": 33,
    "g": 1,
    "b": 44
  },
  "hsl": {
    "h": 284.651,
    "s": 95.556,
    "l": 8.824
  },
  "oklch": {
    "l": 0.18583,
    "c": 0.08751,
    "h": 316.1
  },
  "luminance": 0.00527
}

Semantic roles & 50–950 ramp

primary
#21012C
secondary
#2E7217
accent
#FF2960
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#040005
muted
#79777A

Preview Lab

Preview with #21012C

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

Preview Lab → · Contrast checker → · Palette generator →

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