#21073A#21073A

#21073A is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.0% C 0.092 H 302.2°. Best body text is #FFFFFF at 18.16:1 contrast (WCAG AA passes).

Color values

HEX#21073A
RGBrgb(33, 7, 58)
HSLhsl(271, 78%, 13%)
HSVhsv(271, 88%, 23%)
CMYKcmyk(43.1%, 87.9%, 0%, 77.3%)
CIE-LABlab(7.05, 25.12, -27.16)
CIE-LCHlch(7.05, 36.99, 312.76°)
OKLaboklab(20.98% 0.0488 -0.0777)
OKLCHoklch(20.98% 0.092 302.2)
XYZxyz(1.4667, 0.7808, 4.0756)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21073A #203A07
analogous
#07073A #21073A #3A0739
triadic
#21073A #3A2107 #073A21
tetradic
#21073A #3A0707 #203A07 #07393A
square
#21073A #3A0707 #203A07 #07393A
split-complementary
#21073A #393A07 #073A07
monochromatic
#10031B #10031B #21073A #400E71 #5F14A7

Accessibility & contrast

On white

18.16
#21073A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#21073A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21073A
18.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21073A#FFFFFF#000000##FFFFFF
##21073A1.0018.161.1618.16
#FFFFFF18.161.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00153B
Deuteranopia (green-blind)
#001539
Tritanopia (blue-blind)
#1C1420
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #21073a;
/* rgb */ color: rgb(33, 7, 58);
/* oklch */ color: oklch(21.0% 0.092 302.2);
Tailwind
colors: {
  custom: {
    50: '#5f4971',
    500: '#21073a',
    950: '#000000',
  },
}
SCSS
$custom: #21073a;
$custom-light: #5f4971;
$custom-dark: #000000;
JSON
{
  "hex": "#21073a",
  "rgb": {
    "r": 33,
    "g": 7,
    "b": 58
  },
  "hsl": {
    "h": 270.588,
    "s": 78.462,
    "l": 12.745
  },
  "oklch": {
    "l": 0.20983,
    "c": 0.09177,
    "h": 302.2
  },
  "luminance": 0.00781
}

Semantic roles & 50–950 ramp

primary
#21073A
secondary
#4E7923
accent
#F53392
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050107
muted
#79777A

Preview Lab

Preview with #21073A

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

Preview Lab → · Contrast checker → · Palette generator →

#21073A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva