#21073C#21073C

#21073C is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.2% C 0.094 H 300.8°. Best body text is #FFFFFF at 18.10:1 contrast (WCAG AA passes).

Color values

HEX#21073C
RGBrgb(33, 7, 60)
HSLhsl(269, 79%, 13%)
HSVhsv(269, 88%, 24%)
CMYKcmyk(45%, 88.3%, 0%, 76.5%)
CIE-LABlab(7.24, 25.76, -28.30)
CIE-LCHlch(7.24, 38.27, 312.31°)
OKLaboklab(21.19% 0.0482 -0.081)
OKLCHoklch(21.19% 0.094 300.8)
XYZxyz(1.5186, 0.8015, 4.3488)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21073C #223C07
analogous
#07073C #21073C #3B073C
triadic
#21073C #3C2107 #073C21
tetradic
#21073C #3C0707 #223C07 #073C3B
square
#21073C #3C0707 #223C07 #073C3B
split-complementary
#21073C #3C3B07 #073C07
monochromatic
#0F031B #0F031B #21073C #3F0D73 #5D14AA

Accessibility & contrast

On white

18.10
#21073C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21073C
18.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21073C#FFFFFF#000000##FFFFFF
##21073C1.0018.101.1618.10
#FFFFFF18.101.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00163D
Deuteranopia (green-blind)
#00163B
Tritanopia (blue-blind)
#1B1521
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #21073c;
/* rgb */ color: rgb(33, 7, 60);
/* oklch */ color: oklch(21.2% 0.094 300.8);
Tailwind
colors: {
  custom: {
    50: '#604a72',
    500: '#21073c',
    950: '#000000',
  },
}
SCSS
$custom: #21073c;
$custom-light: #604a72;
$custom-dark: #000000;
JSON
{
  "hex": "#21073c",
  "rgb": {
    "r": 33,
    "g": 7,
    "b": 60
  },
  "hsl": {
    "h": 269.434,
    "s": 79.104,
    "l": 13.137
  },
  "oklch": {
    "l": 0.21187,
    "c": 0.09424,
    "h": 300.8
  },
  "luminance": 0.00802
}

Semantic roles & 50–950 ramp

primary
#21073C
secondary
#507B23
accent
#F63296
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050108
muted
#79777B

Preview Lab

Preview with #21073C

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

Preview Lab → · Contrast checker → · Palette generator →

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