#20166C#20166C

#20166C is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.4% C 0.140 H 277.9°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#20166C
RGBrgb(32, 22, 108)
HSLhsl(247, 66%, 25%)
HSVhsv(247, 80%, 42%)
CMYKcmyk(70.4%, 79.6%, 0%, 57.6%)
CIE-LABlab(15.29, 32.85, -47.88)
CIE-LCHlch(15.29, 58.07, 304.45°)
OKLaboklab(28.41% 0.0193 -0.1383)
OKLCHoklch(28.41% 0.14 277.9)
XYZxyz(3.5885, 1.9633, 14.3743)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20166C #626C16
analogous
#16376C #20166C #4B166C
triadic
#20166C #6C2016 #166C20
tetradic
#20166C #6C1637 #626C16 #166C4B
square
#20166C #6C1637 #626C16 #166C4B
split-complementary
#20166C #6C4B16 #376C16
monochromatic
#080519 #110C39 #20166C #2F209F #3E2BD2

Accessibility & contrast

On white

15.08
#20166C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#20166C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20166C
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20166C#FFFFFF#000000##FFFFFF
##20166C1.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.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: #20166c;
/* rgb */ color: rgb(32, 22, 108);
/* oklch */ color: oklch(28.4% 0.140 277.9);
Tailwind
colors: {
  custom: {
    50: '#685597',
    500: '#20166c',
    950: '#000000',
  },
}
SCSS
$custom: #20166c;
$custom-light: #685597;
$custom-dark: #000000;
JSON
{
  "hex": "#20166c",
  "rgb": {
    "r": 32,
    "g": 22,
    "b": 108
  },
  "hsl": {
    "h": 246.977,
    "s": 66.154,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28414,
    "c": 0.13966,
    "h": 277.9
  },
  "luminance": 0.01964
}

Semantic roles & 50–950 ramp

primary
#20166C
secondary
#96A23C
accent
#E93FD5
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #20166C

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

Preview Lab → · Contrast checker → · Palette generator →

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