#21164A#21164A

#21164A is a very dark, moderate violet. Relative luminance 0.014; OKLCH L 25.0% C 0.092 H 287.5°. Best body text is #FFFFFF at 16.43:1 contrast (WCAG AA passes).

Color values

HEX#21164A
RGBrgb(33, 22, 74)
HSLhsl(253, 54%, 19%)
HSVhsv(253, 70%, 29%)
CMYKcmyk(55.4%, 70.3%, 0%, 71%)
CIE-LABlab(11.90, 21.14, -30.59)
CIE-LCHlch(11.90, 37.18, 304.65°)
OKLaboklab(24.95% 0.0277 -0.0876)
OKLCHoklch(24.95% 0.092 287.5)
XYZxyz(2.1498, 1.3915, 6.6325)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21164A #3F4A16
analogous
#16254A #21164A #3B164A
triadic
#21164A #4A2116 #164A21
tetradic
#21164A #4A1625 #3F4A16 #164A3B
square
#21164A #4A1625 #3F4A16 #164A3B
split-complementary
#21164A #4A3B16 #254A16
monochromatic
#0B0718 #0C081B #21164A #362479 #4B32A8

Accessibility & contrast

On white

16.43
#21164A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#21164A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21164A
16.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21164A#FFFFFF#000000##FFFFFF
##21164A1.0016.431.2816.43
#FFFFFF16.431.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214C
Deuteranopia (green-blind)
#001E49
Tritanopia (blue-blind)
#12222D
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #21164a;
/* rgb */ color: rgb(33, 22, 74);
/* oklch */ color: oklch(25.0% 0.092 287.5);
Tailwind
colors: {
  custom: {
    50: '#61547d',
    500: '#21164a',
    950: '#000000',
  },
}
SCSS
$custom: #21164a;
$custom-light: #61547d;
$custom-dark: #000000;
JSON
{
  "hex": "#21164a",
  "rgb": {
    "r": 33,
    "g": 22,
    "b": 74
  },
  "hsl": {
    "h": 252.692,
    "s": 54.167,
    "l": 18.824
  },
  "oklch": {
    "l": 0.24951,
    "c": 0.0919,
    "h": 287.5
  },
  "luminance": 0.01392
}

Semantic roles & 50–950 ramp

primary
#21164A
secondary
#72823A
accent
#DE4ABE
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #21164A

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

Preview Lab → · Contrast checker → · Palette generator →

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