#21063F#21063F

#21063F is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.4% C 0.099 H 299.1°. Best body text is #FFFFFF at 18.07:1 contrast (WCAG AA passes).

Color values

HEX#21063F
RGBrgb(33, 6, 63)
HSLhsl(268, 83%, 14%)
HSVhsv(268, 90%, 25%)
CMYKcmyk(47.6%, 90.5%, 0%, 75.3%)
CIE-LABlab(7.34, 27.26, -30.29)
CIE-LCHlch(7.34, 40.75, 311.99°)
OKLaboklab(21.36% 0.0484 -0.0868)
OKLCHoklch(21.36% 0.099 299.1)
XYZxyz(1.5893, 0.8124, 4.7747)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21063F #243F06
analogous
#06073F #21063F #3D063F
triadic
#21063F #3F2106 #063F21
tetradic
#21063F #3F0607 #243F06 #063F3D
square
#21063F #3F0607 #243F06 #063F3D
split-complementary
#21063F #3F3D06 #073F06
monochromatic
#0F031C #0F031C #21063F #3E0B77 #5C11AF

Accessibility & contrast

On white

18.07
#21063F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#21063F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21063F
18.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21063F#FFFFFF#000000##FFFFFF
##21063F1.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)
#001641
Deuteranopia (green-blind)
#00163E
Tritanopia (blue-blind)
#1A1623
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #21063f;
/* rgb */ color: rgb(33, 6, 63);
/* oklch */ color: oklch(21.4% 0.099 299.1);
Tailwind
colors: {
  custom: {
    50: '#604975',
    500: '#21063f',
    950: '#000000',
  },
}
SCSS
$custom: #21063f;
$custom-light: #604975;
$custom-dark: #000000;
JSON
{
  "hex": "#21063f",
  "rgb": {
    "r": 33,
    "g": 6,
    "b": 63
  },
  "hsl": {
    "h": 268.421,
    "s": 82.609,
    "l": 13.529
  },
  "oklch": {
    "l": 0.21357,
    "c": 0.09935,
    "h": 299.1
  },
  "luminance": 0.00812
}

Semantic roles & 50–950 ramp

primary
#21063F
secondary
#537F22
accent
#F92F99
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #21063F

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

Preview Lab → · Contrast checker → · Palette generator →

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