#20166F#20166F

#20166F is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.8% C 0.144 H 277.4°. Best body text is #FFFFFF at 14.94:1 contrast (WCAG AA passes).

Color values

HEX#20166F
RGBrgb(32, 22, 111)
HSLhsl(247, 67%, 26%)
HSVhsv(247, 80%, 44%)
CMYKcmyk(71.2%, 80.2%, 0%, 56.5%)
CIE-LABlab(15.64, 33.87, -49.27)
CIE-LCHlch(15.64, 59.79, 304.50°)
OKLaboklab(28.76% 0.0185 -0.1424)
OKLCHoklch(28.76% 0.144 277.4)
XYZxyz(3.7509, 2.0283, 15.2297)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20166F #656F16
analogous
#16386F #20166F #4C166F
triadic
#20166F #6F2016 #166F20
tetradic
#20166F #6F1638 #656F16 #166F4C
square
#20166F #6F1638 #656F16 #166F4C
split-complementary
#20166F #6F4C16 #386F16
monochromatic
#07051A #110C3C #20166F #2F20A2 #3E2BD5

Accessibility & contrast

On white

14.94
#20166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#20166F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20166F
14.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20166F#FFFFFF#000000##FFFFFF
##20166F1.0014.941.4114.94
#FFFFFF14.941.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00236D
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #20166f;
/* rgb */ color: rgb(32, 22, 111);
/* oklch */ color: oklch(28.8% 0.144 277.4);
Tailwind
colors: {
  custom: {
    50: '#695599',
    500: '#20166f',
    950: '#000000',
  },
}
SCSS
$custom: #20166f;
$custom-light: #695599;
$custom-dark: #000000;
JSON
{
  "hex": "#20166f",
  "rgb": {
    "r": 32,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 246.742,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.28756,
    "c": 0.14357,
    "h": 277.4
  },
  "luminance": 0.02029
}

Semantic roles & 50–950 ramp

primary
#20166F
secondary
#99A53C
accent
#EA3ED7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #20166F

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

Preview Lab → · Contrast checker → · Palette generator →

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