#21164B#21164B

#21164B is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.0% C 0.093 H 287.2°. Best body text is #FFFFFF at 16.39:1 contrast (WCAG AA passes).

Color values

HEX#21164B
RGBrgb(33, 22, 75)
HSLhsl(252, 55%, 19%)
HSVhsv(252, 71%, 29%)
CMYKcmyk(56%, 70.7%, 0%, 70.6%)
CIE-LABlab(11.99, 21.49, -31.13)
CIE-LCHlch(11.99, 37.83, 304.62°)
OKLaboklab(25.05% 0.0276 -0.0892)
OKLCHoklch(25.05% 0.093 287.2)
XYZxyz(2.1837, 1.4050, 6.8114)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21164B #404B16
analogous
#16264B #21164B #3C164B
triadic
#21164B #4B2116 #164B21
tetradic
#21164B #4B1626 #404B16 #164B3C
square
#21164B #4B1626 #404B16 #164B3C
split-complementary
#21164B #4B3C16 #264B16
monochromatic
#0A0718 #0C081C #21164B #36247A #4B32AA

Accessibility & contrast

On white

16.39
#21164B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21164B
16.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21164B#FFFFFF#000000##FFFFFF
##21164B1.0016.391.2816.39
#FFFFFF16.391.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214D
Deuteranopia (green-blind)
#001E4A
Tritanopia (blue-blind)
#12232E
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #21164b;
/* rgb */ color: rgb(33, 22, 75);
/* oklch */ color: oklch(25.0% 0.093 287.2);
Tailwind
colors: {
  custom: {
    50: '#61547e',
    500: '#21164b',
    950: '#000000',
  },
}
SCSS
$custom: #21164b;
$custom-light: #61547e;
$custom-dark: #000000;
JSON
{
  "hex": "#21164b",
  "rgb": {
    "r": 33,
    "g": 22,
    "b": 75
  },
  "hsl": {
    "h": 252.453,
    "s": 54.639,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25045,
    "c": 0.0934,
    "h": 287.2
  },
  "luminance": 0.01405
}

Semantic roles & 50–950 ramp

primary
#21164B
secondary
#74833A
accent
#DE4ABF
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #21164B

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

Preview Lab → · Contrast checker → · Palette generator →

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