#21163D#21163D

#21163D is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.8% C 0.072 H 293.2°. Best body text is #FFFFFF at 16.84:1 contrast (WCAG AA passes).

Color values

HEX#21163D
RGBrgb(33, 22, 61)
HSLhsl(257, 47%, 16%)
HSVhsv(257, 64%, 24%)
CMYKcmyk(45.9%, 63.9%, 0%, 76.1%)
CIE-LABlab(10.81, 16.64, -23.24)
CIE-LCHlch(10.81, 28.58, 305.61°)
OKLaboklab(23.8% 0.0283 -0.066)
OKLCHoklch(23.8% 0.072 293.2)
XYZxyz(1.7562, 1.2340, 4.5596)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21163D #323D16
analogous
#161F3D #21163D #35163D
triadic
#21163D #3D2116 #163D21
tetradic
#21163D #3D161F #323D16 #163D35
square
#21163D #3D161F #323D16 #163D35
split-complementary
#21163D #3D3516 #1F3D16
monochromatic
#0C0816 #0C0816 #21163D #39266A #523697

Accessibility & contrast

On white

16.84
#21163D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21163D
16.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21163D#FFFFFF#000000##FFFFFF
##21163D1.0016.841.2516.84
#FFFFFF16.841.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041E3E
Deuteranopia (green-blind)
#061C3C
Tritanopia (blue-blind)
#1A1E26
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #21163d;
/* rgb */ color: rgb(33, 22, 61);
/* oklch */ color: oklch(23.8% 0.072 293.2);
Tailwind
colors: {
  custom: {
    50: '#5f5373',
    500: '#21163d',
    950: '#000000',
  },
}
SCSS
$custom: #21163d;
$custom-light: #5f5373;
$custom-dark: #000000;
JSON
{
  "hex": "#21163d",
  "rgb": {
    "r": 33,
    "g": 22,
    "b": 61
  },
  "hsl": {
    "h": 256.923,
    "s": 46.988,
    "l": 16.275
  },
  "oklch": {
    "l": 0.23802,
    "c": 0.07181,
    "h": 293.2
  },
  "luminance": 0.01234
}

Semantic roles & 50–950 ramp

primary
#21163D
secondary
#64743B
accent
#D751B1
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040208
muted
#79787B

Preview Lab

Preview with #21163D

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

Preview Lab → · Contrast checker → · Palette generator →

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