#21063B#21063B

#21063B is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.9% C 0.095 H 301.8°. Best body text is #FFFFFF at 18.20:1 contrast (WCAG AA passes).

Color values

HEX#21063B
RGBrgb(33, 6, 59)
HSLhsl(271, 82%, 13%)
HSVhsv(271, 90%, 23%)
CMYKcmyk(44.1%, 89.8%, 0%, 76.9%)
CIE-LABlab(6.95, 25.98, -28.05)
CIE-LCHlch(6.95, 38.23, 312.81°)
OKLaboklab(20.94% 0.0498 -0.0803)
OKLCHoklch(20.94% 0.095 301.8)
XYZxyz(1.4815, 0.7693, 4.2073)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21063B #203B06
analogous
#07063B #21063B #3B063A
triadic
#21063B #3B2106 #063B21
tetradic
#21063B #3B0706 #203B06 #063A3B
square
#21063B #3B0706 #203B06 #063A3B
split-complementary
#21063B #3A3B06 #063B07
monochromatic
#10031C #10031C #21063B #400C73 #5F11AA

Accessibility & contrast

On white

18.20
#21063B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#21063B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21063B
18.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21063B#FFFFFF#000000##FFFFFF
##21063B1.0018.201.1518.20
#FFFFFF18.201.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00153C
Deuteranopia (green-blind)
#00153A
Tritanopia (blue-blind)
#1B1420
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #21063b;
/* rgb */ color: rgb(33, 6, 59);
/* oklch */ color: oklch(20.9% 0.095 301.8);
Tailwind
colors: {
  custom: {
    50: '#604971',
    500: '#21063b',
    950: '#000000',
  },
}
SCSS
$custom: #21063b;
$custom-light: #604971;
$custom-dark: #000000;
JSON
{
  "hex": "#21063b",
  "rgb": {
    "r": 33,
    "g": 6,
    "b": 59
  },
  "hsl": {
    "h": 270.566,
    "s": 81.538,
    "l": 12.745
  },
  "oklch": {
    "l": 0.20936,
    "c": 0.09454,
    "h": 301.8
  },
  "luminance": 0.00769
}

Semantic roles & 50–950 ramp

primary
#21063B
secondary
#4E7B22
accent
#F83092
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050108
muted
#79777B

Preview Lab

Preview with #21063B

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

Preview Lab → · Contrast checker → · Palette generator →

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