#21168E#21168E

#21168E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.182 H 273.6°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#21168E
RGBrgb(33, 22, 142)
HSLhsl(246, 73%, 32%)
HSVhsv(246, 85%, 56%)
CMYKcmyk(76.8%, 84.5%, 0%, 44.3%)
CIE-LABlab(19.43, 44.07, -62.72)
CIE-LCHlch(19.43, 76.66, 305.09°)
OKLaboklab(32.5% 0.0114 -0.1814)
OKLCHoklch(32.5% 0.182 273.6)
XYZxyz(5.7950, 2.8495, 25.8306)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21168E #838E16
analogous
#16478E #21168E #5D168E
triadic
#21168E #8E2116 #168E21
tetradic
#21168E #8E1647 #838E16 #168E5D
square
#21168E #8E1647 #838E16 #168E5D
split-complementary
#21168E #8E5D16 #478E16
monochromatic
#080624 #150E59 #21168E #2D1EC3 #4C3DE1

Accessibility & contrast

On white

13.38
#21168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#21168E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21168E
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21168E#FFFFFF#000000##FFFFFF
##21168E1.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003491
Deuteranopia (green-blind)
#00298C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #21168e;
/* rgb */ color: rgb(33, 22, 142);
/* oklch */ color: oklch(32.5% 0.182 273.6);
Tailwind
colors: {
  custom: {
    50: '#7158b0',
    500: '#21168e',
    950: '#000000',
  },
}
SCSS
$custom: #21168e;
$custom-light: #7158b0;
$custom-dark: #000000;
JSON
{
  "hex": "#21168e",
  "rgb": {
    "r": 33,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 245.5,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32503,
    "c": 0.18176,
    "h": 273.6
  },
  "luminance": 0.0285
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21168E

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

Preview Lab → · Contrast checker → · Palette generator →

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