#21166A#21166A

#21166A is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.3% C 0.137 H 279.0°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#21166A
RGBrgb(33, 22, 106)
HSLhsl(248, 66%, 25%)
HSVhsv(248, 79%, 42%)
CMYKcmyk(68.9%, 79.2%, 0%, 58.4%)
CIE-LABlab(15.16, 32.29, -46.80)
CIE-LCHlch(15.16, 56.86, 304.60°)
OKLaboklab(28.27% 0.0213 -0.1351)
OKLCHoklch(28.27% 0.137 279)
XYZxyz(3.5148, 1.9375, 13.8216)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21166A #5F6A16
analogous
#16356A #21166A #4B166A
triadic
#21166A #6A2116 #166A21
tetradic
#21166A #6A1635 #5F6A16 #166A4B
square
#21166A #6A1635 #5F6A16 #166A4B
split-complementary
#21166A #6A4B16 #356A16
monochromatic
#080519 #110B37 #21166A #31219D #412BCF

Accessibility & contrast

On white

15.13
#21166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#21166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21166A
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21166A#FFFFFF#000000##FFFFFF
##21166A1.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296C
Deuteranopia (green-blind)
#002368
Tritanopia (blue-blind)
#002E3F
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #21166a;
/* rgb */ color: rgb(33, 22, 106);
/* oklch */ color: oklch(28.3% 0.137 279.0);
Tailwind
colors: {
  custom: {
    50: '#685596',
    500: '#21166a',
    950: '#000000',
  },
}
SCSS
$custom: #21166a;
$custom-light: #685596;
$custom-dark: #000000;
JSON
{
  "hex": "#21166a",
  "rgb": {
    "r": 33,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 247.857,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.28272,
    "c": 0.1368,
    "h": 279
  },
  "luminance": 0.01938
}

Semantic roles & 50–950 ramp

primary
#21166A
secondary
#93A03B
accent
#E93FD2
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #21166A

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

Preview Lab → · Contrast checker → · Palette generator →

#21166A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva