#20166D#20166D

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

Color values

HEX#20166D
RGBrgb(32, 22, 109)
HSLhsl(247, 66%, 26%)
HSVhsv(247, 80%, 43%)
CMYKcmyk(70.6%, 79.8%, 0%, 57.3%)
CIE-LABlab(15.41, 33.19, -48.35)
CIE-LCHlch(15.41, 58.65, 304.47°)
OKLaboklab(28.53% 0.019 -0.1397)
OKLCHoklch(28.53% 0.141 277.8)
XYZxyz(3.6420, 1.9847, 14.6562)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20166D #636D16
analogous
#16376D #20166D #4B166D
triadic
#20166D #6D2016 #166D20
tetradic
#20166D #6D1637 #636D16 #166D4B
square
#20166D #6D1637 #636D16 #166D4B
split-complementary
#20166D #6D4B16 #376D16
monochromatic
#070519 #110C3A #20166D #2F20A0 #3E2BD3

Accessibility & contrast

On white

15.03
#20166D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20166D
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20166D#FFFFFF#000000##FFFFFF
##20166D1.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.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: #20166d;
/* rgb */ color: rgb(32, 22, 109);
/* oklch */ color: oklch(28.5% 0.141 277.8);
Tailwind
colors: {
  custom: {
    50: '#685598',
    500: '#20166d',
    950: '#000000',
  },
}
SCSS
$custom: #20166d;
$custom-light: #685598;
$custom-dark: #000000;
JSON
{
  "hex": "#20166d",
  "rgb": {
    "r": 32,
    "g": 22,
    "b": 109
  },
  "hsl": {
    "h": 246.897,
    "s": 66.412,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28528,
    "c": 0.14097,
    "h": 277.8
  },
  "luminance": 0.01985
}

Semantic roles & 50–950 ramp

primary
#20166D
secondary
#97A33C
accent
#E93ED6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #20166D

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

Preview Lab → · Contrast checker → · Palette generator →

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