#21168D#21168D

#21168D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.4% C 0.181 H 273.7°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#21168D
RGBrgb(33, 22, 141)
HSLhsl(246, 73%, 32%)
HSVhsv(246, 84%, 55%)
CMYKcmyk(76.6%, 84.4%, 0%, 44.7%)
CIE-LABlab(19.31, 43.76, -62.30)
CIE-LCHlch(19.31, 76.14, 305.08°)
OKLaboklab(32.38% 0.0117 -0.1802)
OKLCHoklch(32.38% 0.181 273.7)
XYZxyz(5.7202, 2.8196, 25.4369)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21168D #828D16
analogous
#16478D #21168D #5D168D
triadic
#21168D #8D2116 #168D21
tetradic
#21168D #8D1647 #828D16 #168D5D
square
#21168D #8D1647 #828D16 #168D5D
split-complementary
#21168D #8D5D16 #478D16
monochromatic
#080523 #150E58 #21168D #2D1EC2 #4C3DE1

Accessibility & contrast

On white

13.43
#21168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#21168D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21168D
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21168D#FFFFFF#000000##FFFFFF
##21168D1.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003490
Deuteranopia (green-blind)
#00298B
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #21168d;
/* rgb */ color: rgb(33, 22, 141);
/* oklch */ color: oklch(32.4% 0.181 273.7);
Tailwind
colors: {
  custom: {
    50: '#7158b0',
    500: '#21168d',
    950: '#000000',
  },
}
SCSS
$custom: #21168d;
$custom-light: #7158b0;
$custom-dark: #000000;
JSON
{
  "hex": "#21168d",
  "rgb": {
    "r": 33,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 245.546,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32381,
    "c": 0.18057,
    "h": 273.7
  },
  "luminance": 0.0282
}

Semantic roles & 50–950 ramp

primary
#21168D
secondary
#B4C13E
accent
#F038DF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #21168D

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

Preview Lab → · Contrast checker → · Palette generator →

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