#21043B#21043B

#21043B is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.6% C 0.098 H 302.5°. Best body text is #FFFFFF at 18.34:1 contrast (WCAG AA passes).

Color values

HEX#21043B
RGBrgb(33, 4, 59)
HSLhsl(272, 87%, 12%)
HSVhsv(272, 93%, 23%)
CMYKcmyk(44.1%, 93.2%, 0%, 76.9%)
CIE-LABlab(6.56, 27.06, -28.68)
CIE-LCHlch(6.56, 39.43, 313.33°)
OKLaboklab(20.63% 0.0525 -0.0824)
OKLCHoklch(20.63% 0.098 302.5)
XYZxyz(1.4598, 0.7259, 4.2000)
Luminance0.0073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21043B #1E3B04
analogous
#05043B #21043B #3B043A
triadic
#21043B #3B2104 #043B21
tetradic
#21043B #3B0504 #1E3B04 #043A3B
square
#21043B #3B0504 #1E3B04 #043A3B
split-complementary
#21043B #3A3B04 #043B05
monochromatic
#10021D #10021D #21043B #410874 #610CAE

Accessibility & contrast

On white

18.34
#21043B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#21043B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21043B
18.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21043B#FFFFFF#000000##FFFFFF
##21043B1.0018.341.1518.34
#FFFFFF18.341.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21043b;
/* rgb */ color: rgb(33, 4, 59);
/* oklch */ color: oklch(20.6% 0.098 302.5);
Tailwind
colors: {
  custom: {
    50: '#604871',
    500: '#21043b',
    950: '#000000',
  },
}
SCSS
$custom: #21043b;
$custom-light: #604871;
$custom-dark: #000000;
JSON
{
  "hex": "#21043b",
  "rgb": {
    "r": 33,
    "g": 4,
    "b": 59
  },
  "hsl": {
    "h": 271.636,
    "s": 87.302,
    "l": 12.353
  },
  "oklch": {
    "l": 0.20631,
    "c": 0.09771,
    "h": 302.5
  },
  "luminance": 0.00726
}

Semantic roles & 50–950 ramp

primary
#21043B
secondary
#4B7D1E
accent
#FD2A8E
background
#F5F4F6
surface
#EAE6EC
border
#C6C2C7
text
#050008
muted
#79777B

Preview Lab

Preview with #21043B

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

Preview Lab → · Contrast checker → · Palette generator →

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