#20178A#20178A

#20178A is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.176 H 273.5°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#20178A
RGBrgb(32, 23, 138)
HSLhsl(245, 71%, 32%)
HSVhsv(245, 83%, 54%)
CMYKcmyk(76.8%, 83.3%, 0%, 45.9%)
CIE-LABlab(19.03, 42.26, -60.89)
CIE-LCHlch(19.03, 74.11, 304.76°)
OKLaboklab(32.07% 0.0108 -0.1761)
OKLCHoklch(32.07% 0.176 273.5)
XYZxyz(5.4880, 2.7543, 24.2822)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20178A #818A17
analogous
#17488A #20178A #5A178A
triadic
#20178A #8A2017 #178A20
tetradic
#20178A #8A1748 #818A17 #178A5A
square
#20178A #8A1748 #818A17 #178A5A
split-complementary
#20178A #8A5A17 #488A17
monochromatic
#080621 #140E56 #20178A #2C20BE #493DDF

Accessibility & contrast

On white

13.54
#20178A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#20178A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20178A
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20178A#FFFFFF#000000##FFFFFF
##20178A1.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002988
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #20178a;
/* rgb */ color: rgb(32, 23, 138);
/* oklch */ color: oklch(32.1% 0.176 273.5);
Tailwind
colors: {
  custom: {
    50: '#6f58ad',
    500: '#20178a',
    950: '#000000',
  },
}
SCSS
$custom: #20178a;
$custom-light: #6f58ad;
$custom-dark: #000000;
JSON
{
  "hex": "#20178a",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 138
  },
  "hsl": {
    "h": 244.696,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32066,
    "c": 0.17645,
    "h": 273.5
  },
  "luminance": 0.02755
}

Semantic roles & 50–950 ramp

primary
#20178A
secondary
#B4BE3F
accent
#EE3AE0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #20178A

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

Preview Lab → · Contrast checker → · Palette generator →

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