#21132F#21132F

#21132F is a very dark, muted violet. Relative luminance 0.010; OKLCH L 22.1% C 0.055 H 305.4°. Best body text is #FFFFFF at 17.52:1 contrast (WCAG AA passes).

Color values

HEX#21132F
RGBrgb(33, 19, 47)
HSLhsl(270, 42%, 13%)
HSVhsv(270, 60%, 18%)
CMYKcmyk(29.8%, 59.6%, 0%, 81.6%)
CIE-LABlab(8.94, 14.26, -16.09)
CIE-LCHlch(8.94, 21.50, 311.55°)
OKLaboklab(22.09% 0.0321 -0.0451)
OKLCHoklch(22.09% 0.055 305.4)
XYZxyz(1.3731, 0.9943, 2.8084)
Luminance0.0099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21132F #212F13
analogous
#13132F #21132F #2F132F
triadic
#21132F #2F2113 #132F21
tetradic
#21132F #2F1313 #212F13 #132F2F
square
#21132F #2F1313 #212F13 #132F2F
split-complementary
#21132F #2F2F13 #132F13
monochromatic
#0F0916 #0F0916 #21132F #40255B #5E3686

Accessibility & contrast

On white

17.52
#21132F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21132F
17.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21132F#FFFFFF#000000##FFFFFF
##21132F1.0017.521.2017.52
#FFFFFF17.521.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21132f;
/* rgb */ color: rgb(33, 19, 47);
/* oklch */ color: oklch(22.1% 0.055 305.4);
Tailwind
colors: {
  custom: {
    50: '#5d5167',
    500: '#21132f',
    950: '#000000',
  },
}
SCSS
$custom: #21132f;
$custom-light: #5d5167;
$custom-dark: #000000;
JSON
{
  "hex": "#21132f",
  "rgb": {
    "r": 33,
    "g": 19,
    "b": 47
  },
  "hsl": {
    "h": 270,
    "s": 42.424,
    "l": 12.941
  },
  "oklch": {
    "l": 0.22092,
    "c": 0.05531,
    "h": 305.4
  },
  "luminance": 0.00994
}

Semantic roles & 50–950 ramp

primary
#21132F
secondary
#4F6637
accent
#D25694
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040206
muted
#79787A

Preview Lab

Preview with #21132F

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

Preview Lab → · Contrast checker → · Palette generator →

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