#21073B#21073B

#21073B is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.1% C 0.093 H 301.5°. Best body text is #FFFFFF at 18.13:1 contrast (WCAG AA passes).

Color values

HEX#21073B
RGBrgb(33, 7, 59)
HSLhsl(270, 79%, 13%)
HSVhsv(270, 88%, 23%)
CMYKcmyk(44.1%, 88.1%, 0%, 76.9%)
CIE-LABlab(7.14, 25.44, -27.73)
CIE-LCHlch(7.14, 37.63, 312.54°)
OKLaboklab(21.09% 0.0485 -0.0793)
OKLCHoklch(21.09% 0.093 301.5)
XYZxyz(1.4924, 0.7910, 4.2109)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21073B #213B07
analogous
#07073B #21073B #3B073B
triadic
#21073B #3B2107 #073B21
tetradic
#21073B #3B0707 #213B07 #073B3B
square
#21073B #3B0707 #213B07 #073B3B
split-complementary
#21073B #3B3B07 #073B07
monochromatic
#0F031B #0F031B #21073B #400D72 #5E14A8

Accessibility & contrast

On white

18.13
#21073B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21073B
18.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21073B#FFFFFF#000000##FFFFFF
##21073B1.0018.131.1618.13
#FFFFFF18.131.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00153C
Deuteranopia (green-blind)
#00163A
Tritanopia (blue-blind)
#1B1421
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #21073b;
/* rgb */ color: rgb(33, 7, 59);
/* oklch */ color: oklch(21.1% 0.093 301.5);
Tailwind
colors: {
  custom: {
    50: '#604971',
    500: '#21073b',
    950: '#000000',
  },
}
SCSS
$custom: #21073b;
$custom-light: #604971;
$custom-dark: #000000;
JSON
{
  "hex": "#21073b",
  "rgb": {
    "r": 33,
    "g": 7,
    "b": 59
  },
  "hsl": {
    "h": 270,
    "s": 78.788,
    "l": 12.941
  },
  "oklch": {
    "l": 0.21085,
    "c": 0.093,
    "h": 301.5
  },
  "luminance": 0.00791
}

Semantic roles & 50–950 ramp

primary
#21073B
secondary
#4F7A23
accent
#F53394
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050108
muted
#79777B

Preview Lab

Preview with #21073B

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

Preview Lab → · Contrast checker → · Palette generator →

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