#20178B#20178B

#20178B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.2% C 0.178 H 273.4°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#20178B
RGBrgb(32, 23, 139)
HSLhsl(245, 72%, 32%)
HSVhsv(245, 83%, 55%)
CMYKcmyk(77%, 83.5%, 0%, 45.5%)
CIE-LABlab(19.15, 42.57, -61.31)
CIE-LCHlch(19.15, 74.64, 304.78°)
OKLaboklab(32.19% 0.0105 -0.1773)
OKLCHoklch(32.19% 0.178 273.4)
XYZxyz(5.5607, 2.7834, 24.6653)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20178B #828B17
analogous
#17488B #20178B #5A178B
triadic
#20178B #8B2017 #178B20
tetradic
#20178B #8B1748 #828B17 #178B5A
square
#20178B #8B1748 #828B17 #178B5A
split-complementary
#20178B #8B5A17 #488B17
monochromatic
#080622 #140E56 #20178B #2C20C0 #4A3DDF

Accessibility & contrast

On white

13.49
#20178B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20178B
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20178B#FFFFFF#000000##FFFFFF
##20178B1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348E
Deuteranopia (green-blind)
#002989
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #20178b;
/* rgb */ color: rgb(32, 23, 139);
/* oklch */ color: oklch(32.2% 0.178 273.4);
Tailwind
colors: {
  custom: {
    50: '#7058ae',
    500: '#20178b',
    950: '#000000',
  },
}
SCSS
$custom: #20178b;
$custom-light: #7058ae;
$custom-dark: #000000;
JSON
{
  "hex": "#20178b",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 139
  },
  "hsl": {
    "h": 244.655,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32187,
    "c": 0.17765,
    "h": 273.4
  },
  "luminance": 0.02784
}

Semantic roles & 50–950 ramp

primary
#20178B
secondary
#B5BF3F
accent
#EE39E0
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090310
muted
#7B787F

Preview Lab

Preview with #20178B

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

Preview Lab → · Contrast checker → · Palette generator →

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