#21166D#21166D

#21166D is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.6% C 0.141 H 278.4°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#21166D
RGBrgb(33, 22, 109)
HSLhsl(248, 66%, 26%)
HSVhsv(248, 80%, 43%)
CMYKcmyk(69.7%, 79.8%, 0%, 57.3%)
CIE-LABlab(15.49, 33.31, -48.20)
CIE-LCHlch(15.49, 58.59, 304.64°)
OKLaboklab(28.61% 0.0205 -0.1392)
OKLCHoklch(28.61% 0.141 278.4)
XYZxyz(3.6735, 2.0010, 14.6577)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21166D #626D16
analogous
#16366D #21166D #4C166D
triadic
#21166D #6D2116 #166D21
tetradic
#21166D #6D1636 #626D16 #166D4C
square
#21166D #6D1636 #626D16 #166D4C
split-complementary
#21166D #6D4C16 #366D16
monochromatic
#080519 #120C3A #21166D #3020A0 #402BD3

Accessibility & contrast

On white

15.00
#21166D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#21166D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21166D
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21166D#FFFFFF#000000##FFFFFF
##21166D1.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6F
Deuteranopia (green-blind)
#00236B
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #21166d;
/* rgb */ color: rgb(33, 22, 109);
/* oklch */ color: oklch(28.6% 0.141 278.4);
Tailwind
colors: {
  custom: {
    50: '#695598',
    500: '#21166d',
    950: '#000000',
  },
}
SCSS
$custom: #21166d;
$custom-light: #695598;
$custom-dark: #000000;
JSON
{
  "hex": "#21166d",
  "rgb": {
    "r": 33,
    "g": 22,
    "b": 109
  },
  "hsl": {
    "h": 247.586,
    "s": 66.412,
    "l": 25.686
  },
  "oklch": {
    "l": 0.2861,
    "c": 0.14074,
    "h": 278.4
  },
  "luminance": 0.02001
}

Semantic roles & 50–950 ramp

primary
#21166D
secondary
#96A33C
accent
#E93ED4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #21166D

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

Preview Lab → · Contrast checker → · Palette generator →

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