#21168C#21168C

#21168C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.3% C 0.179 H 273.8°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#21168C
RGBrgb(33, 22, 140)
HSLhsl(246, 73%, 32%)
HSVhsv(246, 84%, 55%)
CMYKcmyk(76.4%, 84.3%, 0%, 45.1%)
CIE-LABlab(19.18, 43.44, -61.89)
CIE-LCHlch(19.18, 75.61, 305.07°)
OKLaboklab(32.26% 0.0119 -0.179)
OKLCHoklch(32.26% 0.179 273.8)
XYZxyz(5.6462, 2.7900, 25.0468)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21168C #818C16
analogous
#16468C #21168C #5C168C
triadic
#21168C #8C2116 #168C21
tetradic
#21168C #8C1646 #818C16 #168C5C
square
#21168C #8C1646 #818C16 #168C5C
split-complementary
#21168C #8C5C16 #468C16
monochromatic
#080522 #150E57 #21168C #2D1EC1 #4B3CE0

Accessibility & contrast

On white

13.48
#21168C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21168C
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21168C#FFFFFF#000000##FFFFFF
##21168C1.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348F
Deuteranopia (green-blind)
#00298A
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #21168c;
/* rgb */ color: rgb(33, 22, 140);
/* oklch */ color: oklch(32.3% 0.179 273.8);
Tailwind
colors: {
  custom: {
    50: '#7057af',
    500: '#21168c',
    950: '#000000',
  },
}
SCSS
$custom: #21168c;
$custom-light: #7057af;
$custom-dark: #000000;
JSON
{
  "hex": "#21168c",
  "rgb": {
    "r": 33,
    "g": 22,
    "b": 140
  },
  "hsl": {
    "h": 245.593,
    "s": 72.84,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3226,
    "c": 0.17938,
    "h": 273.8
  },
  "luminance": 0.02791
}

Semantic roles & 50–950 ramp

primary
#21168C
secondary
#B4C03E
accent
#F038DE
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #21168C

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

Preview Lab → · Contrast checker → · Palette generator →

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