#20178E#20178E

#20178E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.181 H 273.1°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#20178E
RGBrgb(32, 23, 142)
HSLhsl(245, 72%, 32%)
HSVhsv(245, 84%, 56%)
CMYKcmyk(77.5%, 83.8%, 0%, 44.3%)
CIE-LABlab(19.52, 43.53, -62.57)
CIE-LCHlch(19.52, 76.22, 304.83°)
OKLaboklab(32.55% 0.0097 -0.181)
OKLCHoklch(32.55% 0.181 273.1)
XYZxyz(5.7829, 2.8723, 25.8356)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20178E #858E17
analogous
#17498E #20178E #5C178E
triadic
#20178E #8E2017 #178E20
tetradic
#20178E #8E1749 #858E17 #178E5C
square
#20178E #8E1749 #858E17 #178E5C
split-complementary
#20178E #8E5C17 #498E17
monochromatic
#080625 #140E59 #20178E #2C20C3 #4C3FE0

Accessibility & contrast

On white

13.34
#20178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#20178E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20178E
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20178E#FFFFFF#000000##FFFFFF
##20178E1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003591
Deuteranopia (green-blind)
#00298C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #20178e;
/* rgb */ color: rgb(32, 23, 142);
/* oklch */ color: oklch(32.6% 0.181 273.1);
Tailwind
colors: {
  custom: {
    50: '#7058b0',
    500: '#20178e',
    950: '#000000',
  },
}
SCSS
$custom: #20178e;
$custom-light: #7058b0;
$custom-dark: #000000;
JSON
{
  "hex": "#20178e",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 244.538,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3255,
    "c": 0.18125,
    "h": 273.1
  },
  "luminance": 0.02873
}

Semantic roles & 50–950 ramp

primary
#20178E
secondary
#B7C040
accent
#EF39E1
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #20178E

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

Preview Lab → · Contrast checker → · Palette generator →

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