#21043F#21043F

#21043F is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.1% C 0.102 H 299.8°. Best body text is #FFFFFF at 18.20:1 contrast (WCAG AA passes).

Color values

HEX#21043F
RGBrgb(33, 4, 63)
HSLhsl(269, 88%, 13%)
HSVhsv(269, 94%, 25%)
CMYKcmyk(47.6%, 93.7%, 0%, 75.3%)
CIE-LABlab(6.95, 28.37, -30.93)
CIE-LCHlch(6.95, 41.97, 312.52°)
OKLaboklab(21.07% 0.0508 -0.0888)
OKLCHoklch(21.07% 0.102 299.8)
XYZxyz(1.5676, 0.7690, 4.7675)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21043F #223F04
analogous
#04043F #21043F #3E043F
triadic
#21043F #3F2104 #043F21
tetradic
#21043F #3F0404 #223F04 #043F3E
square
#21043F #3F0404 #223F04 #043F3E
split-complementary
#21043F #3F3E04 #043F04
monochromatic
#0F021D #0F021D #21043F #3F0879 #5D0BB2

Accessibility & contrast

On white

18.20
#21043F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21043F
18.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21043F#FFFFFF#000000##FFFFFF
##21043F1.0018.201.1518.20
#FFFFFF18.201.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001541
Deuteranopia (green-blind)
#00153E
Tritanopia (blue-blind)
#1A1522
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #21043f;
/* rgb */ color: rgb(33, 4, 63);
/* oklch */ color: oklch(21.1% 0.102 299.8);
Tailwind
colors: {
  custom: {
    50: '#614875',
    500: '#21043f',
    950: '#000000',
  },
}
SCSS
$custom: #21043f;
$custom-light: #614875;
$custom-dark: #000000;
JSON
{
  "hex": "#21043f",
  "rgb": {
    "r": 33,
    "g": 4,
    "b": 63
  },
  "hsl": {
    "h": 269.492,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.21065,
    "c": 0.10228,
    "h": 299.8
  },
  "luminance": 0.00769
}

Semantic roles & 50–950 ramp

primary
#21043F
secondary
#50801E
accent
#FE2A96
background
#F5F4F7
surface
#EAE6ED
border
#C6C2C8
text
#050008
muted
#79777B

Preview Lab

Preview with #21043F

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

Preview Lab → · Contrast checker → · Palette generator →

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