#21132E#21132E

#21132E is a very dark, muted violet. Relative luminance 0.010; OKLCH L 22.0% C 0.054 H 306.4°. Best body text is #FFFFFF at 17.54:1 contrast (WCAG AA passes).

Color values

HEX#21132E
RGBrgb(33, 19, 46)
HSLhsl(271, 42%, 13%)
HSVhsv(271, 59%, 18%)
CMYKcmyk(28.3%, 58.7%, 0%, 82%)
CIE-LABlab(8.88, 13.95, -15.45)
CIE-LCHlch(8.88, 20.82, 312.08°)
OKLaboklab(22.02% 0.0319 -0.0432)
OKLCHoklch(22.02% 0.054 306.4)
XYZxyz(1.3531, 0.9863, 2.7033)
Luminance0.0099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21132E #202E13
analogous
#13132E #21132E #2E132D
triadic
#21132E #2E2113 #132E21
tetradic
#21132E #2E1313 #202E13 #132D2E
square
#21132E #2E1313 #202E13 #132D2E
split-complementary
#21132E #2D2E13 #132E13
monochromatic
#100916 #100916 #21132E #402559 #5F3785

Accessibility & contrast

On white

17.54
#21132E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#21132E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21132E
17.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21132E#FFFFFF#000000##FFFFFF
##21132E1.0017.541.2017.54
#FFFFFF17.541.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C192F
Deuteranopia (green-blind)
#0F192D
Tritanopia (blue-blind)
#1F181E
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #21132e;
/* rgb */ color: rgb(33, 19, 46);
/* oklch */ color: oklch(22.0% 0.054 306.4);
Tailwind
colors: {
  custom: {
    50: '#5d5167',
    500: '#21132e',
    950: '#000000',
  },
}
SCSS
$custom: #21132e;
$custom-light: #5d5167;
$custom-dark: #000000;
JSON
{
  "hex": "#21132e",
  "rgb": {
    "r": 33,
    "g": 19,
    "b": 46
  },
  "hsl": {
    "h": 271.111,
    "s": 41.538,
    "l": 12.745
  },
  "oklch": {
    "l": 0.22021,
    "c": 0.05374,
    "h": 306.4
  },
  "luminance": 0.00986
}

Semantic roles & 50–950 ramp

primary
#21132E
secondary
#4E6538
accent
#D15692
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040206
muted
#79787A

Preview Lab

Preview with #21132E

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

Preview Lab → · Contrast checker → · Palette generator →

#21132E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva