#20178D#20178D

#20178D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.4% C 0.180 H 273.2°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#20178D
RGBrgb(32, 23, 141)
HSLhsl(245, 72%, 32%)
HSVhsv(245, 84%, 55%)
CMYKcmyk(77.3%, 83.7%, 0%, 44.7%)
CIE-LABlab(19.40, 43.21, -62.15)
CIE-LCHlch(19.40, 75.70, 304.81°)
OKLaboklab(32.43% 0.01 -0.1798)
OKLCHoklch(32.43% 0.18 273.2)
XYZxyz(5.7082, 2.8424, 25.4419)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20178D #848D17
analogous
#17498D #20178D #5B178D
triadic
#20178D #8D2017 #178D20
tetradic
#20178D #8D1749 #848D17 #178D5B
square
#20178D #8D1749 #848D17 #178D5B
split-complementary
#20178D #8D5B17 #498D17
monochromatic
#080624 #140E58 #20178D #2C20C2 #4B3FE0

Accessibility & contrast

On white

13.39
#20178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20178D
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20178D#FFFFFF#000000##FFFFFF
##20178D1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003490
Deuteranopia (green-blind)
#00298B
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #20178d;
/* rgb */ color: rgb(32, 23, 141);
/* oklch */ color: oklch(32.4% 0.180 273.2);
Tailwind
colors: {
  custom: {
    50: '#7058b0',
    500: '#20178d',
    950: '#000000',
  },
}
SCSS
$custom: #20178d;
$custom-light: #7058b0;
$custom-dark: #000000;
JSON
{
  "hex": "#20178d",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 244.576,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32429,
    "c": 0.18006,
    "h": 273.2
  },
  "luminance": 0.02843
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20178D

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

Preview Lab → · Contrast checker → · Palette generator →

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