#21023B#21023B

#21023B is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.3% C 0.101 H 303.1°. Best body text is #FFFFFF at 18.48:1 contrast (WCAG AA passes).

Color values

HEX#21023B
RGBrgb(33, 2, 59)
HSLhsl(273, 93%, 12%)
HSVhsv(273, 97%, 23%)
CMYKcmyk(44.1%, 96.6%, 0%, 76.9%)
CIE-LABlab(6.17, 28.13, -29.32)
CIE-LCHlch(6.17, 40.63, 313.81°)
OKLaboklab(20.32% 0.0552 -0.0846)
OKLCHoklch(20.32% 0.101 303.1)
XYZxyz(1.4381, 0.6825, 4.1928)
Luminance0.0068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21023B #1C3B02
analogous
#05023B #21023B #3B0239
triadic
#21023B #3B2102 #023B21
tetradic
#21023B #3B0502 #1C3B02 #02393B
square
#21023B #3B0502 #1C3B02 #02393B
split-complementary
#21023B #393B02 #023B05
monochromatic
#11011E #11011E #21023B #420476 #6306B1

Accessibility & contrast

On white

18.48
#21023B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#21023B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21023B
18.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21023B#FFFFFF#000000##FFFFFF
##21023B1.0018.481.1418.48
#FFFFFF18.481.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00133C
Deuteranopia (green-blind)
#00133A
Tritanopia (blue-blind)
#1B121F
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #21023b;
/* rgb */ color: rgb(33, 2, 59);
/* oklch */ color: oklch(20.3% 0.101 303.1);
Tailwind
colors: {
  custom: {
    50: '#604771',
    500: '#21023b',
    950: '#000000',
  },
}
SCSS
$custom: #21023b;
$custom-light: #604771;
$custom-dark: #000000;
JSON
{
  "hex": "#21023b",
  "rgb": {
    "r": 33,
    "g": 2,
    "b": 59
  },
  "hsl": {
    "h": 272.632,
    "s": 93.443,
    "l": 11.961
  },
  "oklch": {
    "l": 0.20317,
    "c": 0.10103,
    "h": 303.1
  },
  "luminance": 0.00683
}

Semantic roles & 50–950 ramp

primary
#21023B
secondary
#487E1A
accent
#FF298B
background
#F5F4F6
surface
#EAE6EC
border
#C6C2C7
text
#050008
muted
#79777B

Preview Lab

Preview with #21023B

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

Preview Lab → · Contrast checker → · Palette generator →

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