#21124F#21124F

#21124F is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.8% C 0.105 H 287.4°. Best body text is #FFFFFF at 16.61:1 contrast (WCAG AA passes).

Color values

HEX#21124F
RGBrgb(33, 18, 79)
HSLhsl(255, 63%, 19%)
HSVhsv(255, 77%, 31%)
CMYKcmyk(58.2%, 77.2%, 0%, 69%)
CIE-LABlab(11.42, 25.48, -34.83)
CIE-LCHlch(11.42, 43.16, 306.19°)
OKLaboklab(24.75% 0.0313 -0.1001)
OKLCHoklch(24.75% 0.105 287.4)
XYZxyz(2.2544, 1.3203, 7.5317)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21124F #404F12
analogous
#12224F #21124F #40124F
triadic
#21124F #4F2112 #124F21
tetradic
#21124F #4F1222 #404F12 #124F40
square
#21124F #4F1222 #404F12 #124F40
split-complementary
#21124F #4F4012 #224F12
monochromatic
#0A0619 #0C071D #21124F #361D81 #4B29B3

Accessibility & contrast

On white

16.61
#21124F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21124F
16.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21124F#FFFFFF#000000##FFFFFF
##21124F1.0016.611.2616.61
#FFFFFF16.611.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002051
Deuteranopia (green-blind)
#001D4E
Tritanopia (blue-blind)
#0F222F
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #21124f;
/* rgb */ color: rgb(33, 18, 79);
/* oklch */ color: oklch(24.8% 0.105 287.4);
Tailwind
colors: {
  custom: {
    50: '#625181',
    500: '#21124f',
    950: '#000000',
  },
}
SCSS
$custom: #21124f;
$custom-light: #625181;
$custom-dark: #000000;
JSON
{
  "hex": "#21124f",
  "rgb": {
    "r": 33,
    "g": 18,
    "b": 79
  },
  "hsl": {
    "h": 254.754,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.24751,
    "c": 0.10487,
    "h": 287.4
  },
  "luminance": 0.0132
}

Semantic roles & 50–950 ramp

primary
#21124F
secondary
#748835
accent
#E642BE
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #21124F

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

Preview Lab → · Contrast checker → · Palette generator →

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