#21124C#21124C

#21124C is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.4% C 0.101 H 288.5°. Best body text is #FFFFFF at 16.73:1 contrast (WCAG AA passes).

Color values

HEX#21124C
RGBrgb(33, 18, 76)
HSLhsl(256, 62%, 18%)
HSVhsv(256, 76%, 30%)
CMYKcmyk(56.6%, 76.3%, 0%, 70.2%)
CIE-LABlab(11.12, 24.47, -33.25)
CIE-LCHlch(11.12, 41.28, 306.35°)
OKLaboklab(24.45% 0.032 -0.0954)
OKLCHoklch(24.45% 0.101 288.5)
XYZxyz(2.1476, 1.2776, 6.9695)
Luminance0.0128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21124C #3D4C12
analogous
#12204C #21124C #3E124C
triadic
#21124C #4C2112 #124C21
tetradic
#21124C #4C1220 #3D4C12 #124C3E
square
#21124C #4C1220 #3D4C12 #124C3E
split-complementary
#21124C #4C3E12 #204C12
monochromatic
#0B0619 #0C061B #21124C #361E7D #4C29AF

Accessibility & contrast

On white

16.73
#21124C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#21124C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21124C
16.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21124C#FFFFFF#000000##FFFFFF
##21124C1.0016.731.2616.73
#FFFFFF16.731.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4E
Deuteranopia (green-blind)
#001C4B
Tritanopia (blue-blind)
#11212D
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #21124c;
/* rgb */ color: rgb(33, 18, 76);
/* oklch */ color: oklch(24.4% 0.101 288.5);
Tailwind
colors: {
  custom: {
    50: '#62517f',
    500: '#21124c',
    950: '#000000',
  },
}
SCSS
$custom: #21124c;
$custom-light: #62517f;
$custom-dark: #000000;
JSON
{
  "hex": "#21124c",
  "rgb": {
    "r": 33,
    "g": 18,
    "b": 76
  },
  "hsl": {
    "h": 255.517,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.24446,
    "c": 0.10066,
    "h": 288.5
  },
  "luminance": 0.01278
}

Semantic roles & 50–950 ramp

primary
#21124C
secondary
#708535
accent
#E543BB
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #21124C

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

Preview Lab → · Contrast checker → · Palette generator →

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