#20179F#20179F

#20179F is a dark, highly saturated blue. Relative luminance 0.034; OKLCH L 34.6% C 0.201 H 271.5°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#20179F
RGBrgb(32, 23, 159)
HSLhsl(244, 75%, 36%)
HSVhsv(244, 86%, 62%)
CMYKcmyk(79.9%, 85.5%, 0%, 37.6%)
CIE-LABlab(21.66, 48.81, -69.51)
CIE-LCHlch(21.66, 84.94, 305.08°)
OKLaboklab(34.64% 0.0053 -0.2011)
OKLCHoklch(34.64% 0.201 271.5)
XYZxyz(7.1580, 3.4223, 33.0775)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20179F #969F17
analogous
#17529F #20179F #64179F
triadic
#20179F #9F2017 #179F20
tetradic
#20179F #9F1752 #969F17 #179F64
square
#20179F #9F1752 #969F17 #179F64
split-complementary
#20179F #9F6417 #529F17
monochromatic
#0A0834 #150F6A #20179F #2B1FD4 #564BE5

Accessibility & contrast

On white

12.47
#20179F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#20179F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20179F
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20179F#FFFFFF#000000##FFFFFF
##20179F1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003AA3
Deuteranopia (green-blind)
#002D9D
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #20179f;
/* rgb */ color: rgb(32, 23, 159);
/* oklch */ color: oklch(34.6% 0.201 271.5);
Tailwind
colors: {
  custom: {
    50: '#7559bd',
    500: '#20179f',
    950: '#000000',
  },
}
SCSS
$custom: #20179f;
$custom-light: #7559bd;
$custom-dark: #000000;
JSON
{
  "hex": "#20179f",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 159
  },
  "hsl": {
    "h": 243.971,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.34635,
    "c": 0.20117,
    "h": 271.5
  },
  "luminance": 0.03423
}

Semantic roles & 50–950 ramp

primary
#20179F
secondary
#BEC74B
accent
#F136E5
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #20179F

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

Preview Lab → · Contrast checker → · Palette generator →

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