#21073F#21073F

#21073F is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.5% C 0.098 H 298.8°. Best body text is #FFFFFF at 18.00:1 contrast (WCAG AA passes).

Color values

HEX#21073F
RGBrgb(33, 7, 63)
HSLhsl(268, 80%, 14%)
HSVhsv(268, 89%, 25%)
CMYKcmyk(47.6%, 88.9%, 0%, 75.3%)
CIE-LABlab(7.53, 26.71, -29.97)
CIE-LCHlch(7.53, 40.14, 311.71°)
OKLaboklab(21.5% 0.0472 -0.0858)
OKLCHoklch(21.5% 0.098 298.8)
XYZxyz(1.6002, 0.8341, 4.7784)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21073F #253F07
analogous
#07093F #21073F #3D073F
triadic
#21073F #3F2107 #073F21
tetradic
#21073F #3F0709 #253F07 #073F3D
square
#21073F #3F0709 #253F07 #073F3D
split-complementary
#21073F #3F3D07 #093F07
monochromatic
#0E031C #0E031C #21073F #3E0D76 #5B13AD

Accessibility & contrast

On white

18.00
#21073F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#21073F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21073F
18.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21073F#FFFFFF#000000##FFFFFF
##21073F1.0018.001.1718.00
#FFFFFF18.001.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001741
Deuteranopia (green-blind)
#00163E
Tritanopia (blue-blind)
#1A1623
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #21073f;
/* rgb */ color: rgb(33, 7, 63);
/* oklch */ color: oklch(21.5% 0.098 298.8);
Tailwind
colors: {
  custom: {
    50: '#604a75',
    500: '#21073f',
    950: '#000000',
  },
}
SCSS
$custom: #21073f;
$custom-light: #604a75;
$custom-dark: #000000;
JSON
{
  "hex": "#21073f",
  "rgb": {
    "r": 33,
    "g": 7,
    "b": 63
  },
  "hsl": {
    "h": 267.857,
    "s": 80,
    "l": 13.725
  },
  "oklch": {
    "l": 0.215,
    "c": 0.09792,
    "h": 298.8
  },
  "luminance": 0.00834
}

Semantic roles & 50–950 ramp

primary
#21073F
secondary
#547E24
accent
#F6319B
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #21073F

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

Preview Lab → · Contrast checker → · Palette generator →

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