#21072F#21072F

#21072F is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.9% C 0.078 H 311.2°. Best body text is #FFFFFF at 18.48:1 contrast (WCAG AA passes).

Color values

HEX#21072F
RGBrgb(33, 7, 47)
HSLhsl(279, 74%, 11%)
HSVhsv(279, 85%, 18%)
CMYKcmyk(29.8%, 85.1%, 0%, 81.6%)
CIE-LABlab(6.15, 21.48, -20.54)
CIE-LCHlch(6.15, 29.72, 316.29°)
OKLaboklab(19.93% 0.0515 -0.0589)
OKLCHoklch(19.93% 0.078 311.2)
XYZxyz(1.2162, 0.6806, 2.7561)
Luminance0.0068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21072F #152F07
analogous
#0D072F #21072F #2F0729
triadic
#21072F #2F2107 #072F21
tetradic
#21072F #2F0D07 #152F07 #07292F
square
#21072F #2F0D07 #152F07 #07292F
split-complementary
#21072F #292F07 #072F0D
monochromatic
#13041B #13041B #21072F #460F64 #6C179A

Accessibility & contrast

On white

18.48
#21072F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#21072F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21072F
18.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21072F#FFFFFF#000000##FFFFFF
##21072F1.0018.481.1418.48
#FFFFFF18.481.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001230
Deuteranopia (green-blind)
#03142E
Tritanopia (blue-blind)
#1F101A
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #21072f;
/* rgb */ color: rgb(33, 7, 47);
/* oklch */ color: oklch(19.9% 0.078 311.2);
Tailwind
colors: {
  custom: {
    50: '#5e4968',
    500: '#21072f',
    950: '#000000',
  },
}
SCSS
$custom: #21072f;
$custom-light: #5e4968;
$custom-dark: #000000;
JSON
{
  "hex": "#21072f",
  "rgb": {
    "r": 33,
    "g": 7,
    "b": 47
  },
  "hsl": {
    "h": 279,
    "s": 74.074,
    "l": 10.588
  },
  "oklch": {
    "l": 0.19933,
    "c": 0.07818,
    "h": 311.2
  },
  "luminance": 0.00681
}

Semantic roles & 50–950 ramp

primary
#21072F
secondary
#3E6F23
accent
#F13778
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A

Preview Lab

Preview with #21072F

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

Preview Lab → · Contrast checker → · Palette generator →

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