#21166E#21166E

#21166E is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.7% C 0.142 H 278.2°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#21166E
RGBrgb(33, 22, 110)
HSLhsl(248, 67%, 26%)
HSVhsv(248, 80%, 43%)
CMYKcmyk(70%, 80%, 0%, 56.9%)
CIE-LABlab(15.61, 33.65, -48.67)
CIE-LCHlch(15.61, 59.17, 304.66°)
OKLaboklab(28.72% 0.0203 -0.1406)
OKLCHoklch(28.72% 0.142 278.2)
XYZxyz(3.7277, 2.0226, 14.9428)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21166E #636E16
analogous
#16376E #21166E #4D166E
triadic
#21166E #6E2116 #166E21
tetradic
#21166E #6E1637 #636E16 #166E4D
square
#21166E #6E1637 #636E16 #166E4D
split-complementary
#21166E #6E4D16 #376E16
monochromatic
#08051A #120C3B #21166E #3020A1 #402AD4

Accessibility & contrast

On white

14.95
#21166E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21166E
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21166E#FFFFFF#000000##FFFFFF
##21166E1.0014.951.4014.95
#FFFFFF14.951.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A71
Deuteranopia (green-blind)
#00236C
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #21166e;
/* rgb */ color: rgb(33, 22, 110);
/* oklch */ color: oklch(28.7% 0.142 278.2);
Tailwind
colors: {
  custom: {
    50: '#695599',
    500: '#21166e',
    950: '#000000',
  },
}
SCSS
$custom: #21166e;
$custom-light: #695599;
$custom-dark: #000000;
JSON
{
  "hex": "#21166e",
  "rgb": {
    "r": 33,
    "g": 22,
    "b": 110
  },
  "hsl": {
    "h": 247.5,
    "s": 66.667,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28723,
    "c": 0.14203,
    "h": 278.2
  },
  "luminance": 0.02023
}

Semantic roles & 50–950 ramp

primary
#21166E
secondary
#97A43C
accent
#EA3ED4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #21166E

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

Preview Lab → · Contrast checker → · Palette generator →

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