#21073E#21073E

#21073E is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.4% C 0.097 H 299.5°. Best body text is #FFFFFF at 18.03:1 contrast (WCAG AA passes).

Color values

HEX#21073E
RGBrgb(33, 7, 62)
HSLhsl(268, 80%, 14%)
HSVhsv(268, 89%, 24%)
CMYKcmyk(46.8%, 88.7%, 0%, 75.7%)
CIE-LABlab(7.43, 26.39, -29.42)
CIE-LCHlch(7.43, 39.52, 311.90°)
OKLaboklab(21.4% 0.0476 -0.0842)
OKLCHoklch(21.4% 0.097 299.5)
XYZxyz(1.5725, 0.8231, 4.6325)
Luminance0.0082 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21073E #243E07
analogous
#07083E #21073E #3C073E
triadic
#21073E #3E2107 #073E21
tetradic
#21073E #3E0708 #243E07 #073E3C
square
#21073E #3E0708 #243E07 #073E3C
split-complementary
#21073E #3E3C07 #083E07
monochromatic
#0F031B #0F031B #21073E #3E0D75 #5C13AC

Accessibility & contrast

On white

18.03
#21073E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21073E
18.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21073E#FFFFFF#000000##FFFFFF
##21073E1.0018.031.1618.03
#FFFFFF18.031.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21073e;
/* rgb */ color: rgb(33, 7, 62);
/* oklch */ color: oklch(21.4% 0.097 299.5);
Tailwind
colors: {
  custom: {
    50: '#604a74',
    500: '#21073e',
    950: '#000000',
  },
}
SCSS
$custom: #21073e;
$custom-light: #604a74;
$custom-dark: #000000;
JSON
{
  "hex": "#21073e",
  "rgb": {
    "r": 33,
    "g": 7,
    "b": 62
  },
  "hsl": {
    "h": 268.364,
    "s": 79.71,
    "l": 13.529
  },
  "oklch": {
    "l": 0.21395,
    "c": 0.0967,
    "h": 299.5
  },
  "luminance": 0.00823
}

Semantic roles & 50–950 ramp

primary
#21073E
secondary
#537D24
accent
#F63299
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #21073E

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

Preview Lab → · Contrast checker → · Palette generator →

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