#20178C#20178C

#20178C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.3% C 0.179 H 273.3°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#20178C
RGBrgb(32, 23, 140)
HSLhsl(245, 72%, 32%)
HSVhsv(245, 84%, 55%)
CMYKcmyk(77.1%, 83.6%, 0%, 45.1%)
CIE-LABlab(19.28, 42.90, -61.73)
CIE-LCHlch(19.28, 75.17, 304.80°)
OKLaboklab(32.31% 0.0103 -0.1786)
OKLCHoklch(32.31% 0.179 273.3)
XYZxyz(5.6341, 2.8127, 25.0518)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20178C #838C17
analogous
#17498C #20178C #5A178C
triadic
#20178C #8C2017 #178C20
tetradic
#20178C #8C1749 #838C17 #178C5A
square
#20178C #8C1749 #838C17 #178C5A
split-complementary
#20178C #8C5A17 #498C17
monochromatic
#080623 #140E57 #20178C #2C20C1 #4A3EDF

Accessibility & contrast

On white

13.44
#20178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#20178C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20178C
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20178C#FFFFFF#000000##FFFFFF
##20178C1.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348F
Deuteranopia (green-blind)
#00298A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #20178c;
/* rgb */ color: rgb(32, 23, 140);
/* oklch */ color: oklch(32.3% 0.179 273.3);
Tailwind
colors: {
  custom: {
    50: '#7058af',
    500: '#20178c',
    950: '#000000',
  },
}
SCSS
$custom: #20178c;
$custom-light: #7058af;
$custom-dark: #000000;
JSON
{
  "hex": "#20178c",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 244.615,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32308,
    "c": 0.17886,
    "h": 273.3
  },
  "luminance": 0.02813
}

Semantic roles & 50–950 ramp

primary
#20178C
secondary
#B6BF3F
accent
#EF39E1
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #20178C

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

Preview Lab → · Contrast checker → · Palette generator →

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