#21043A#21043A

#21043A is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.5% C 0.097 H 303.2°. Best body text is #FFFFFF at 18.37:1 contrast (WCAG AA passes).

Color values

HEX#21043A
RGBrgb(33, 4, 58)
HSLhsl(272, 87%, 12%)
HSVhsv(272, 93%, 23%)
CMYKcmyk(43.1%, 93.1%, 0%, 77.3%)
CIE-LABlab(6.46, 26.72, -28.11)
CIE-LCHlch(6.46, 38.79, 313.55°)
OKLaboklab(20.53% 0.0529 -0.0808)
OKLCHoklch(20.53% 0.097 303.2)
XYZxyz(1.4342, 0.7157, 4.0647)
Luminance0.0072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21043A #1D3A04
analogous
#06043A #21043A #3A0438
triadic
#21043A #3A2104 #043A21
tetradic
#21043A #3A0604 #1D3A04 #04383A
square
#21043A #3A0604 #1D3A04 #04383A
split-complementary
#21043A #383A04 #043A06
monochromatic
#10021D #10021D #21043A #420873 #620CAD

Accessibility & contrast

On white

18.37
#21043A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#21043A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21043A
18.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21043A#FFFFFF#000000##FFFFFF
##21043A1.0018.371.1418.37
#FFFFFF18.371.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00143B
Deuteranopia (green-blind)
#001439
Tritanopia (blue-blind)
#1C121F
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #21043a;
/* rgb */ color: rgb(33, 4, 58);
/* oklch */ color: oklch(20.5% 0.097 303.2);
Tailwind
colors: {
  custom: {
    50: '#604871',
    500: '#21043a',
    950: '#000000',
  },
}
SCSS
$custom: #21043a;
$custom-light: #604871;
$custom-dark: #000000;
JSON
{
  "hex": "#21043a",
  "rgb": {
    "r": 33,
    "g": 4,
    "b": 58
  },
  "hsl": {
    "h": 272.222,
    "s": 87.097,
    "l": 12.157
  },
  "oklch": {
    "l": 0.20525,
    "c": 0.09656,
    "h": 303.2
  },
  "luminance": 0.00716
}

Semantic roles & 50–950 ramp

primary
#21043A
secondary
#497C1E
accent
#FD2B8C
background
#F5F4F6
surface
#EAE6EC
border
#C6C2C7
text
#050007
muted
#79777A

Preview Lab

Preview with #21043A

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

Preview Lab → · Contrast checker → · Palette generator →

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