#21063C#21063C

#21063C is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.0% C 0.096 H 301.1°. Best body text is #FFFFFF at 18.17:1 contrast (WCAG AA passes).

Color values

HEX#21063C
RGBrgb(33, 6, 60)
HSLhsl(270, 82%, 13%)
HSVhsv(270, 90%, 24%)
CMYKcmyk(45%, 90%, 0%, 76.5%)
CIE-LABlab(7.04, 26.30, -28.62)
CIE-LCHlch(7.04, 38.87, 312.59°)
OKLaboklab(21.04% 0.0495 -0.082)
OKLCHoklch(21.04% 0.096 301.1)
XYZxyz(1.5077, 0.7798, 4.3452)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21063C #213C06
analogous
#06063C #21063C #3C063C
triadic
#21063C #3C2106 #063C21
tetradic
#21063C #3C0606 #213C06 #063C3C
square
#21063C #3C0606 #213C06 #063C3C
split-complementary
#21063C #3C3C06 #063C06
monochromatic
#0F031C #0F031C #21063C #400C74 #5E11AB

Accessibility & contrast

On white

18.17
#21063C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21063C
18.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21063C#FFFFFF#000000##FFFFFF
##21063C1.0018.171.1618.17
#FFFFFF18.171.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00153D
Deuteranopia (green-blind)
#00153B
Tritanopia (blue-blind)
#1B1421
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #21063c;
/* rgb */ color: rgb(33, 6, 60);
/* oklch */ color: oklch(21.0% 0.096 301.1);
Tailwind
colors: {
  custom: {
    50: '#604972',
    500: '#21063c',
    950: '#000000',
  },
}
SCSS
$custom: #21063c;
$custom-light: #604972;
$custom-dark: #000000;
JSON
{
  "hex": "#21063c",
  "rgb": {
    "r": 33,
    "g": 6,
    "b": 60
  },
  "hsl": {
    "h": 270,
    "s": 81.818,
    "l": 12.941
  },
  "oklch": {
    "l": 0.2104,
    "c": 0.09574,
    "h": 301.1
  },
  "luminance": 0.0078
}

Semantic roles & 50–950 ramp

primary
#21063C
secondary
#4F7C22
accent
#F83094
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050108
muted
#79777B

Preview Lab

Preview with #21063C

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

Preview Lab → · Contrast checker → · Palette generator →

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