#21082F#21082F

#21082F is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.1% C 0.076 H 310.8°. Best body text is #FFFFFF at 18.41:1 contrast (WCAG AA passes).

Color values

HEX#21082F
RGBrgb(33, 8, 47)
HSLhsl(278, 71%, 11%)
HSVhsv(278, 83%, 18%)
CMYKcmyk(29.8%, 83%, 0%, 81.6%)
CIE-LABlab(6.34, 20.98, -20.22)
CIE-LCHlch(6.34, 29.14, 316.05°)
OKLaboklab(20.1% 0.0499 -0.0578)
OKLCHoklch(20.1% 0.076 310.8)
XYZxyz(1.2270, 0.7023, 2.7597)
Luminance0.0070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21082F #162F08
analogous
#0D082F #21082F #2F0829
triadic
#21082F #2F2108 #082F21
tetradic
#21082F #2F0D08 #162F08 #08292F
square
#21082F #2F0D08 #162F08 #08292F
split-complementary
#21082F #292F08 #082F0D
monochromatic
#12041A #12041A #21082F #461163 #6A1A98

Accessibility & contrast

On white

18.41
#21082F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21082F
18.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21082F#FFFFFF#000000##FFFFFF
##21082F1.0018.411.1418.41
#FFFFFF18.411.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21082f;
/* rgb */ color: rgb(33, 8, 47);
/* oklch */ color: oklch(20.1% 0.076 310.8);
Tailwind
colors: {
  custom: {
    50: '#5e4a68',
    500: '#21082f',
    950: '#000000',
  },
}
SCSS
$custom: #21082f;
$custom-light: #5e4a68;
$custom-dark: #000000;
JSON
{
  "hex": "#21082f",
  "rgb": {
    "r": 33,
    "g": 8,
    "b": 47
  },
  "hsl": {
    "h": 278.462,
    "s": 70.909,
    "l": 10.784
  },
  "oklch": {
    "l": 0.20098,
    "c": 0.07633,
    "h": 310.8
  },
  "luminance": 0.00702
}

Semantic roles & 50–950 ramp

primary
#21082F
secondary
#3F6E25
accent
#EE3A7B
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A

Preview Lab

Preview with #21082F

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

Preview Lab → · Contrast checker → · Palette generator →

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