#21033B#21033B

#21033B is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.5% C 0.099 H 302.8°. Best body text is #FFFFFF at 18.41:1 contrast (WCAG AA passes).

Color values

HEX#21033B
RGBrgb(33, 3, 59)
HSLhsl(272, 90%, 12%)
HSVhsv(272, 95%, 23%)
CMYKcmyk(44.1%, 94.9%, 0%, 76.9%)
CIE-LABlab(6.36, 27.59, -29.00)
CIE-LCHlch(6.36, 40.03, 313.57°)
OKLaboklab(20.47% 0.0538 -0.0835)
OKLCHoklch(20.47% 0.099 302.8)
XYZxyz(1.4490, 0.7042, 4.1964)
Luminance0.0070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21033B #1D3B03
analogous
#05033B #21033B #3B0339
triadic
#21033B #3B2103 #033B21
tetradic
#21033B #3B0503 #1D3B03 #03393B
square
#21033B #3B0503 #1D3B03 #03393B
split-complementary
#21033B #393B03 #033B05
monochromatic
#10011D #10011D #21033B #420675 #6209AF

Accessibility & contrast

On white

18.41
#21033B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#21033B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21033B
18.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21033B#FFFFFF#000000##FFFFFF
##21033B1.0018.411.1418.41
#FFFFFF18.411.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00143C
Deuteranopia (green-blind)
#00143A
Tritanopia (blue-blind)
#1B121F
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #21033b;
/* rgb */ color: rgb(33, 3, 59);
/* oklch */ color: oklch(20.5% 0.099 302.8);
Tailwind
colors: {
  custom: {
    50: '#604771',
    500: '#21033b',
    950: '#000000',
  },
}
SCSS
$custom: #21033b;
$custom-light: #604771;
$custom-dark: #000000;
JSON
{
  "hex": "#21033b",
  "rgb": {
    "r": 33,
    "g": 3,
    "b": 59
  },
  "hsl": {
    "h": 272.143,
    "s": 90.323,
    "l": 12.157
  },
  "oklch": {
    "l": 0.20475,
    "c": 0.09935,
    "h": 302.8
  },
  "luminance": 0.00704
}

Semantic roles & 50–950 ramp

primary
#21033B
secondary
#497E1C
accent
#FF298C
background
#F5F4F6
surface
#EAE6EC
border
#C6C2C7
text
#050008
muted
#79777B

Preview Lab

Preview with #21033B

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

Preview Lab → · Contrast checker → · Palette generator →

#21033B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva