#20166B#20166B

#20166B is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.3% C 0.138 H 278.1°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#20166B
RGBrgb(32, 22, 107)
HSLhsl(247, 66%, 25%)
HSVhsv(247, 79%, 42%)
CMYKcmyk(70.1%, 79.4%, 0%, 58%)
CIE-LABlab(15.18, 32.51, -47.42)
CIE-LCHlch(15.18, 57.49, 304.44°)
OKLaboklab(28.3% 0.0195 -0.1369)
OKLCHoklch(28.3% 0.138 278.1)
XYZxyz(3.5356, 1.9421, 14.0956)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20166B #616B16
analogous
#16366B #20166B #4A166B
triadic
#20166B #6B2016 #166B20
tetradic
#20166B #6B1636 #616B16 #166B4A
square
#20166B #6B1636 #616B16 #166B4A
split-complementary
#20166B #6B4A16 #366B16
monochromatic
#080519 #110C38 #20166B #2F209E #3E2BD1

Accessibility & contrast

On white

15.13
#20166B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20166B
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20166B#FFFFFF#000000##FFFFFF
##20166B1.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296D
Deuteranopia (green-blind)
#002369
Tritanopia (blue-blind)
#002F3F
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #20166b;
/* rgb */ color: rgb(32, 22, 107);
/* oklch */ color: oklch(28.3% 0.138 278.1);
Tailwind
colors: {
  custom: {
    50: '#685596',
    500: '#20166b',
    950: '#000000',
  },
}
SCSS
$custom: #20166b;
$custom-light: #685596;
$custom-dark: #000000;
JSON
{
  "hex": "#20166b",
  "rgb": {
    "r": 32,
    "g": 22,
    "b": 107
  },
  "hsl": {
    "h": 247.059,
    "s": 65.891,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28301,
    "c": 0.13834,
    "h": 278.1
  },
  "luminance": 0.01942
}

Semantic roles & 50–950 ramp

primary
#20166B
secondary
#95A13B
accent
#E93FD5
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #20166B

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

Preview Lab → · Contrast checker → · Palette generator →

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