#20166A#20166A

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

Color values

HEX#20166A
RGBrgb(32, 22, 106)
HSLhsl(247, 66%, 25%)
HSVhsv(247, 79%, 42%)
CMYKcmyk(69.8%, 79.2%, 0%, 58.4%)
CIE-LABlab(15.07, 32.17, -46.95)
CIE-LCHlch(15.07, 56.91, 304.42°)
OKLaboklab(28.19% 0.0198 -0.1356)
OKLCHoklch(28.19% 0.137 278.3)
XYZxyz(3.4833, 1.9212, 13.8201)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20166A #606A16
analogous
#16366A #20166A #4A166A
triadic
#20166A #6A2016 #166A20
tetradic
#20166A #6A1636 #606A16 #166A4A
square
#20166A #6A1636 #606A16 #166A4A
split-complementary
#20166A #6A4A16 #366A16
monochromatic
#080519 #110B37 #20166A #2F219D #3F2BCF

Accessibility & contrast

On white

15.17
#20166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#20166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20166A
15.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20166A#FFFFFF#000000##FFFFFF
##20166A1.0015.171.3815.17
#FFFFFF15.171.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20166a;
/* rgb */ color: rgb(32, 22, 106);
/* oklch */ color: oklch(28.2% 0.137 278.3);
Tailwind
colors: {
  custom: {
    50: '#675596',
    500: '#20166a',
    950: '#000000',
  },
}
SCSS
$custom: #20166a;
$custom-light: #675596;
$custom-dark: #000000;
JSON
{
  "hex": "#20166a",
  "rgb": {
    "r": 32,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 247.143,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.28189,
    "c": 0.13703,
    "h": 278.3
  },
  "luminance": 0.01922
}

Semantic roles & 50–950 ramp

primary
#20166A
secondary
#94A03B
accent
#E93FD4
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #20166A

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

Preview Lab → · Contrast checker → · Palette generator →

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