#21134A#21134A

#21134A is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.4% C 0.096 H 288.9°. Best body text is #FFFFFF at 16.71:1 contrast (WCAG AA passes).

Color values

HEX#21134A
RGBrgb(33, 19, 74)
HSLhsl(255, 59%, 18%)
HSVhsv(255, 74%, 29%)
CMYKcmyk(55.4%, 74.3%, 0%, 71%)
CIE-LABlab(11.16, 23.14, -31.80)
CIE-LCHlch(11.16, 39.33, 306.05°)
OKLaboklab(24.42% 0.0312 -0.0912)
OKLCHoklch(24.42% 0.096 288.9)
XYZxyz(2.0957, 1.2834, 6.6145)
Luminance0.0128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21134A #3C4A13
analogous
#13204A #21134A #3C134A
triadic
#21134A #4A2113 #134A21
tetradic
#21134A #4A1320 #3C4A13 #134A3C
square
#21134A #4A1320 #3C4A13 #134A3C
split-complementary
#21134A #4A3C13 #204A13
monochromatic
#0B0618 #0B0619 #21134A #37207B #4C2CAB

Accessibility & contrast

On white

16.71
#21134A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#21134A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21134A
16.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21134A#FFFFFF#000000##FFFFFF
##21134A1.0016.711.2616.71
#FFFFFF16.711.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4C
Deuteranopia (green-blind)
#001C49
Tritanopia (blue-blind)
#13212C
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #21134a;
/* rgb */ color: rgb(33, 19, 74);
/* oklch */ color: oklch(24.4% 0.096 288.9);
Tailwind
colors: {
  custom: {
    50: '#61517d',
    500: '#21134a',
    950: '#000000',
  },
}
SCSS
$custom: #21134a;
$custom-light: #61517d;
$custom-dark: #000000;
JSON
{
  "hex": "#21134a",
  "rgb": {
    "r": 33,
    "g": 19,
    "b": 74
  },
  "hsl": {
    "h": 255.273,
    "s": 59.14,
    "l": 18.235
  },
  "oklch": {
    "l": 0.24415,
    "c": 0.09638,
    "h": 288.9
  },
  "luminance": 0.01283
}

Semantic roles & 50–950 ramp

primary
#21134A
secondary
#6F8336
accent
#E245BA
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #21134A

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

Preview Lab → · Contrast checker → · Palette generator →

#21134A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva