#21012F#21012F

#21012F is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.9% C 0.090 H 313.2°. Best body text is #FFFFFF at 18.92:1 contrast (WCAG AA passes).

Color values

HEX#21012F
RGBrgb(33, 1, 47)
HSLhsl(282, 96%, 9%)
HSVhsv(282, 98%, 18%)
CMYKcmyk(29.8%, 97.9%, 0%, 81.6%)
CIE-LABlab(4.97, 24.43, -22.41)
CIE-LCHlch(4.97, 33.15, 317.47°)
OKLaboklab(18.88% 0.062 -0.0659)
OKLCHoklch(18.88% 0.09 313.2)
XYZxyz(1.1511, 0.5503, 2.7344)
Luminance0.0055 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21012F #0F2F01
analogous
#0A012F #21012F #2F0126
triadic
#21012F #2F2101 #012F21
tetradic
#21012F #2F0A01 #0F2F01 #01262F
square
#21012F #2F0A01 #0F2F01 #01262F
split-complementary
#21012F #262F01 #012F0A
monochromatic
#15011E #15011E #21012F #4B026B #7504A7

Accessibility & contrast

On white

18.92
#21012F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21012F
18.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21012F#FFFFFF#000000##FFFFFF
##21012F1.0018.921.1118.92
#FFFFFF18.921.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F30
Deuteranopia (green-blind)
#00112E
Tritanopia (blue-blind)
#1F0B18
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #21012f;
/* rgb */ color: rgb(33, 1, 47);
/* oklch */ color: oklch(18.9% 0.090 313.2);
Tailwind
colors: {
  custom: {
    50: '#5e4668',
    500: '#21012f',
    950: '#000000',
  },
}
SCSS
$custom: #21012f;
$custom-light: #5e4668;
$custom-dark: #000000;
JSON
{
  "hex": "#21012f",
  "rgb": {
    "r": 33,
    "g": 1,
    "b": 47
  },
  "hsl": {
    "h": 281.739,
    "s": 95.833,
    "l": 9.412
  },
  "oklch": {
    "l": 0.18879,
    "c": 0.09049,
    "h": 313.2
  },
  "luminance": 0.0055
}

Semantic roles & 50–950 ramp

primary
#21012F
secondary
#347517
accent
#FF296A
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#040006
muted
#79777A

Preview Lab

Preview with #21012F

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

Preview Lab → · Contrast checker → · Palette generator →

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