#21166C#21166C

#21166C is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.5% C 0.139 H 278.6°. Best body text is #FFFFFF at 15.04:1 contrast (WCAG AA passes).

Color values

HEX#21166C
RGBrgb(33, 22, 108)
HSLhsl(248, 66%, 25%)
HSVhsv(248, 80%, 42%)
CMYKcmyk(69.4%, 79.6%, 0%, 57.6%)
CIE-LABlab(15.38, 32.97, -47.74)
CIE-LCHlch(15.38, 58.02, 304.63°)
OKLaboklab(28.5% 0.0208 -0.1379)
OKLCHoklch(28.5% 0.139 278.6)
XYZxyz(3.6200, 1.9796, 14.3758)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21166C #616C16
analogous
#16366C #21166C #4C166C
triadic
#21166C #6C2116 #166C21
tetradic
#21166C #6C1636 #616C16 #166C4C
square
#21166C #6C1636 #616C16 #166C4C
split-complementary
#21166C #6C4C16 #366C16
monochromatic
#080519 #110C39 #21166C #31209F #402BD2

Accessibility & contrast

On white

15.04
#21166C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21166C
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21166C#FFFFFF#000000##FFFFFF
##21166C1.0015.041.4015.04
#FFFFFF15.041.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6E
Deuteranopia (green-blind)
#00236A
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #21166c;
/* rgb */ color: rgb(33, 22, 108);
/* oklch */ color: oklch(28.5% 0.139 278.6);
Tailwind
colors: {
  custom: {
    50: '#685597',
    500: '#21166c',
    950: '#000000',
  },
}
SCSS
$custom: #21166c;
$custom-light: #685597;
$custom-dark: #000000;
JSON
{
  "hex": "#21166c",
  "rgb": {
    "r": 33,
    "g": 22,
    "b": 108
  },
  "hsl": {
    "h": 247.674,
    "s": 66.154,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28497,
    "c": 0.13943,
    "h": 278.6
  },
  "luminance": 0.0198
}

Semantic roles & 50–950 ramp

primary
#21166C
secondary
#95A23C
accent
#E93FD3
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #21166C

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

Preview Lab → · Contrast checker → · Palette generator →

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