#21164F#21164F

#21164F is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.4% C 0.099 H 285.8°. Best body text is #FFFFFF at 16.25:1 contrast (WCAG AA passes).

Color values

HEX#21164F
RGBrgb(33, 22, 79)
HSLhsl(252, 56%, 20%)
HSVhsv(252, 72%, 31%)
CMYKcmyk(58.2%, 72.2%, 0%, 69%)
CIE-LABlab(12.36, 22.90, -33.29)
CIE-LCHlch(12.36, 40.40, 304.52°)
OKLaboklab(25.43% 0.027 -0.0956)
OKLCHoklch(25.43% 0.099 285.8)
XYZxyz(2.3250, 1.4615, 7.5552)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21164F #444F16
analogous
#16284F #21164F #3E164F
triadic
#21164F #4F2116 #164F21
tetradic
#21164F #4F1628 #444F16 #164F3E
square
#21164F #4F1628 #444F16 #164F3E
split-complementary
#21164F #4F3E16 #284F16
monochromatic
#0A0718 #0D091F #21164F #35237F #4931AF

Accessibility & contrast

On white

16.25
#21164F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#21164F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21164F
16.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21164F#FFFFFF#000000##FFFFFF
##21164F1.0016.251.2916.25
#FFFFFF16.251.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002251
Deuteranopia (green-blind)
#001F4E
Tritanopia (blue-blind)
#0E2430
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #21164f;
/* rgb */ color: rgb(33, 22, 79);
/* oklch */ color: oklch(25.4% 0.099 285.8);
Tailwind
colors: {
  custom: {
    50: '#625481',
    500: '#21164f',
    950: '#000000',
  },
}
SCSS
$custom: #21164f;
$custom-light: #625481;
$custom-dark: #000000;
JSON
{
  "hex": "#21164f",
  "rgb": {
    "r": 33,
    "g": 22,
    "b": 79
  },
  "hsl": {
    "h": 251.579,
    "s": 56.436,
    "l": 19.804
  },
  "oklch": {
    "l": 0.25429,
    "c": 0.09932,
    "h": 285.8
  },
  "luminance": 0.01462
}

Semantic roles & 50–950 ramp

primary
#21164F
secondary
#78863A
accent
#E048C2
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #21164F

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

Preview Lab → · Contrast checker → · Palette generator →

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