#20166E#20166E

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

Color values

HEX#20166E
RGBrgb(32, 22, 110)
HSLhsl(247, 67%, 26%)
HSVhsv(247, 80%, 43%)
CMYKcmyk(70.9%, 80%, 0%, 56.9%)
CIE-LABlab(15.52, 33.53, -48.81)
CIE-LCHlch(15.52, 59.22, 304.49°)
OKLaboklab(28.64% 0.0188 -0.141)
OKLCHoklch(28.64% 0.142 277.6)
XYZxyz(3.6961, 2.0064, 14.9413)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20166E #646E16
analogous
#16386E #20166E #4C166E
triadic
#20166E #6E2016 #166E20
tetradic
#20166E #6E1638 #646E16 #166E4C
square
#20166E #6E1638 #646E16 #166E4C
split-complementary
#20166E #6E4C16 #386E16
monochromatic
#07051A #110C3B #20166E #2F20A1 #3E2AD4

Accessibility & contrast

On white

14.99
#20166E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20166E
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20166E#FFFFFF#000000##FFFFFF
##20166E1.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.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: #20166e;
/* rgb */ color: rgb(32, 22, 110);
/* oklch */ color: oklch(28.6% 0.142 277.6);
Tailwind
colors: {
  custom: {
    50: '#685599',
    500: '#20166e',
    950: '#000000',
  },
}
SCSS
$custom: #20166e;
$custom-light: #685599;
$custom-dark: #000000;
JSON
{
  "hex": "#20166e",
  "rgb": {
    "r": 32,
    "g": 22,
    "b": 110
  },
  "hsl": {
    "h": 246.818,
    "s": 66.667,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28642,
    "c": 0.14227,
    "h": 277.6
  },
  "luminance": 0.02007
}

Semantic roles & 50–950 ramp

primary
#20166E
secondary
#98A43C
accent
#EA3ED6
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #20166E

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

Preview Lab → · Contrast checker → · Palette generator →

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