#21073D#21073D

#21073D is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.3% C 0.095 H 300.1°. Best body text is #FFFFFF at 18.07:1 contrast (WCAG AA passes).

Color values

HEX#21073D
RGBrgb(33, 7, 61)
HSLhsl(269, 79%, 13%)
HSVhsv(269, 89%, 24%)
CMYKcmyk(45.9%, 88.5%, 0%, 76.1%)
CIE-LABlab(7.34, 26.08, -28.86)
CIE-LCHlch(7.34, 38.90, 312.10°)
OKLaboklab(21.29% 0.0479 -0.0826)
OKLCHoklch(21.29% 0.095 300.1)
XYZxyz(1.5453, 0.8122, 4.4893)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21073D #233D07
analogous
#07083D #21073D #3C073D
triadic
#21073D #3D2107 #073D21
tetradic
#21073D #3D0708 #233D07 #073D3C
square
#21073D #3D0708 #233D07 #073D3C
split-complementary
#21073D #3D3C07 #083D07
monochromatic
#0F031B #0F031B #21073D #3F0D74 #5C14AB

Accessibility & contrast

On white

18.07
#21073D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21073D
18.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21073D#FFFFFF#000000##FFFFFF
##21073D1.0018.071.1618.07
#FFFFFF18.071.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00163E
Deuteranopia (green-blind)
#00163C
Tritanopia (blue-blind)
#1A1522
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #21073d;
/* rgb */ color: rgb(33, 7, 61);
/* oklch */ color: oklch(21.3% 0.095 300.1);
Tailwind
colors: {
  custom: {
    50: '#604a73',
    500: '#21073d',
    950: '#000000',
  },
}
SCSS
$custom: #21073d;
$custom-light: #604a73;
$custom-dark: #000000;
JSON
{
  "hex": "#21073d",
  "rgb": {
    "r": 33,
    "g": 7,
    "b": 61
  },
  "hsl": {
    "h": 268.889,
    "s": 79.412,
    "l": 13.333
  },
  "oklch": {
    "l": 0.21291,
    "c": 0.09547,
    "h": 300.1
  },
  "luminance": 0.00812
}

Semantic roles & 50–950 ramp

primary
#21073D
secondary
#527C23
accent
#F63298
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #21073D

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

Preview Lab → · Contrast checker → · Palette generator →

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