#20176A#20176A

#20176A is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.3% C 0.136 H 278.1°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#20176A
RGBrgb(32, 23, 106)
HSLhsl(247, 64%, 25%)
HSVhsv(247, 78%, 42%)
CMYKcmyk(69.8%, 78.3%, 0%, 58.4%)
CIE-LABlab(15.28, 31.57, -46.60)
CIE-LCHlch(15.28, 56.29, 304.12°)
OKLaboklab(28.34% 0.0191 -0.1346)
OKLCHoklch(28.34% 0.136 278.1)
XYZxyz(3.5027, 1.9602, 13.8266)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20176A #616A17
analogous
#17376A #20176A #49176A
triadic
#20176A #6A2017 #176A20
tetradic
#20176A #6A1737 #616A17 #176A49
square
#20176A #6A1737 #616A17 #176A49
split-complementary
#20176A #6A4917 #376A17
monochromatic
#080519 #110C38 #20176A #2F229C #3E2DCF

Accessibility & contrast

On white

15.09
#20176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#20176A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20176A
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20176A#FFFFFF#000000##FFFFFF
##20176A1.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6C
Deuteranopia (green-blind)
#002368
Tritanopia (blue-blind)
#002F3F
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #20176a;
/* rgb */ color: rgb(32, 23, 106);
/* oklch */ color: oklch(28.3% 0.136 278.1);
Tailwind
colors: {
  custom: {
    50: '#675696',
    500: '#20176a',
    950: '#000000',
  },
}
SCSS
$custom: #20176a;
$custom-light: #675696;
$custom-dark: #000000;
JSON
{
  "hex": "#20176a",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 246.506,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28336,
    "c": 0.13594,
    "h": 278.1
  },
  "luminance": 0.0196
}

Semantic roles & 50–950 ramp

primary
#20176A
secondary
#95A03D
accent
#E740D5
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #20176A

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

Preview Lab → · Contrast checker → · Palette generator →

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