#21102F#21102F

#21102F is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.5% C 0.061 H 307.3°. Best body text is #FFFFFF at 17.80:1 contrast (WCAG AA passes).

Color values

HEX#21102F
RGBrgb(33, 16, 47)
HSLhsl(273, 49%, 12%)
HSVhsv(273, 66%, 18%)
CMYKcmyk(29.8%, 66%, 0%, 81.6%)
CIE-LABlab(8.12, 16.38, -17.39)
CIE-LCHlch(8.12, 23.89, 313.28°)
OKLaboklab(21.48% 0.0373 -0.0489)
OKLCHoklch(21.48% 0.061 307.3)
XYZxyz(1.3255, 0.8992, 2.7925)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21102F #1E2F10
analogous
#12102F #21102F #2F102E
triadic
#21102F #2F2110 #102F21
tetradic
#21102F #2F1210 #1E2F10 #102E2F
square
#21102F #2F1210 #1E2F10 #102E2F
split-complementary
#21102F #2E2F10 #102F12
monochromatic
#100817 #100817 #21102F #41205D #612F8A

Accessibility & contrast

On white

17.80
#21102F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#21102F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21102F
17.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21102F#FFFFFF#000000##FFFFFF
##21102F1.0017.801.1817.80
#FFFFFF17.801.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061730
Deuteranopia (green-blind)
#0C182E
Tritanopia (blue-blind)
#1F161D
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #21102f;
/* rgb */ color: rgb(33, 16, 47);
/* oklch */ color: oklch(21.5% 0.061 307.3);
Tailwind
colors: {
  custom: {
    50: '#5d4e67',
    500: '#21102f',
    950: '#000000',
  },
}
SCSS
$custom: #21102f;
$custom-light: #5d4e67;
$custom-dark: #000000;
JSON
{
  "hex": "#21102f",
  "rgb": {
    "r": 33,
    "g": 16,
    "b": 47
  },
  "hsl": {
    "h": 272.903,
    "s": 49.206,
    "l": 12.353
  },
  "oklch": {
    "l": 0.21483,
    "c": 0.06146,
    "h": 307.3
  },
  "luminance": 0.00899
}

Semantic roles & 50–950 ramp

primary
#21102F
secondary
#4B6833
accent
#D94F8D
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A

Preview Lab

Preview with #21102F

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

Preview Lab → · Contrast checker → · Palette generator →

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