#21053C#21053C

#21053C is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.9% C 0.097 H 301.4°. Best body text is #FFFFFF at 18.24:1 contrast (WCAG AA passes).

Color values

HEX#21053C
RGBrgb(33, 5, 60)
HSLhsl(271, 85%, 13%)
HSVhsv(271, 92%, 24%)
CMYKcmyk(45%, 91.7%, 0%, 76.5%)
CIE-LABlab(6.85, 26.85, -28.93)
CIE-LCHlch(6.85, 39.47, 312.86°)
OKLaboklab(20.89% 0.0508 -0.083)
OKLCHoklch(20.89% 0.097 301.4)
XYZxyz(1.4969, 0.7581, 4.3416)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21053C #203C05
analogous
#05053C #21053C #3C053B
triadic
#21053C #3C2105 #053C21
tetradic
#21053C #3C0505 #203C05 #053B3C
square
#21053C #3C0505 #203C05 #053B3C
split-complementary
#21053C #3B3C05 #053C05
monochromatic
#10021C #10021C #21053C #400A74 #5F0EAD

Accessibility & contrast

On white

18.24
#21053C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#21053C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21053C
18.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21053C#FFFFFF#000000##FFFFFF
##21053C1.0018.241.1518.24
#FFFFFF18.241.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21053c;
/* rgb */ color: rgb(33, 5, 60);
/* oklch */ color: oklch(20.9% 0.097 301.4);
Tailwind
colors: {
  custom: {
    50: '#604872',
    500: '#21053c',
    950: '#000000',
  },
}
SCSS
$custom: #21053c;
$custom-light: #604872;
$custom-dark: #000000;
JSON
{
  "hex": "#21053c",
  "rgb": {
    "r": 33,
    "g": 5,
    "b": 60
  },
  "hsl": {
    "h": 270.545,
    "s": 84.615,
    "l": 12.745
  },
  "oklch": {
    "l": 0.2089,
    "c": 0.09728,
    "h": 301.4
  },
  "luminance": 0.00758
}

Semantic roles & 50–950 ramp

primary
#21053C
secondary
#4E7D20
accent
#FB2D92
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #21053C

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

Preview Lab → · Contrast checker → · Palette generator →

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