#21114D#21114D

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

Color values

HEX#21114D
RGBrgb(33, 17, 77)
HSLhsl(256, 64%, 18%)
HSVhsv(256, 78%, 30%)
CMYKcmyk(57.1%, 77.9%, 0%, 69.8%)
CIE-LABlab(10.99, 25.43, -34.14)
CIE-LCHlch(10.99, 42.57, 306.67°)
OKLaboklab(24.39% 0.0328 -0.0981)
OKLCHoklch(24.39% 0.103 288.5)
XYZxyz(2.1668, 1.2600, 7.1488)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21114D #3D4D11
analogous
#111F4D #21114D #3F114D
triadic
#21114D #4D2111 #114D21
tetradic
#21114D #4D111F #3D4D11 #114D3F
square
#21114D #4D111F #3D4D11 #114D3F
split-complementary
#21114D #4D3F11 #1F4D11
monochromatic
#0B0619 #0C061B #21114D #361C7F #4C27B1

Accessibility & contrast

On white

16.77
#21114D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#21114D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21114D
16.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21114D#FFFFFF#000000##FFFFFF
##21114D1.0016.771.2516.77
#FFFFFF16.771.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4F
Deuteranopia (green-blind)
#001C4C
Tritanopia (blue-blind)
#11212D
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #21114d;
/* rgb */ color: rgb(33, 17, 77);
/* oklch */ color: oklch(24.4% 0.103 288.5);
Tailwind
colors: {
  custom: {
    50: '#62507f',
    500: '#21114d',
    950: '#000000',
  },
}
SCSS
$custom: #21114d;
$custom-light: #62507f;
$custom-dark: #000000;
JSON
{
  "hex": "#21114d",
  "rgb": {
    "r": 33,
    "g": 17,
    "b": 77
  },
  "hsl": {
    "h": 256,
    "s": 63.83,
    "l": 18.431
  },
  "oklch": {
    "l": 0.24387,
    "c": 0.10342,
    "h": 288.5
  },
  "luminance": 0.0126
}

Semantic roles & 50–950 ramp

primary
#21114D
secondary
#708633
accent
#E741BB
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #21114D

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

Preview Lab → · Contrast checker → · Palette generator →

#21114D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva