#20178F#20178F

#20178F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.7% C 0.182 H 273.0°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#20178F
RGBrgb(32, 23, 143)
HSLhsl(245, 72%, 33%)
HSVhsv(245, 84%, 56%)
CMYKcmyk(77.6%, 83.9%, 0%, 43.9%)
CIE-LABlab(19.65, 43.85, -62.99)
CIE-LCHlch(19.65, 76.75, 304.84°)
OKLaboklab(32.67% 0.0095 -0.1822)
OKLCHoklch(32.67% 0.182 273)
XYZxyz(5.8583, 2.9024, 26.2327)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20178F #868F17
analogous
#174A8F #20178F #5C178F
triadic
#20178F #8F2017 #178F20
tetradic
#20178F #8F174A #868F17 #178F5C
square
#20178F #8F174A #868F17 #178F5C
split-complementary
#20178F #8F5C17 #4A8F17
monochromatic
#080626 #140F5A #20178F #2C1FC4 #4C40E0

Accessibility & contrast

On white

13.29
#20178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#20178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20178F
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20178F#FFFFFF#000000##FFFFFF
##20178F1.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#002A8D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #20178f;
/* rgb */ color: rgb(32, 23, 143);
/* oklch */ color: oklch(32.7% 0.182 273.0);
Tailwind
colors: {
  custom: {
    50: '#7158b1',
    500: '#20178f',
    950: '#000000',
  },
}
SCSS
$custom: #20178f;
$custom-light: #7158b1;
$custom-dark: #000000;
JSON
{
  "hex": "#20178f",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 244.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32672,
    "c": 0.18245,
    "h": 273
  },
  "luminance": 0.02903
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20178F

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

Preview Lab → · Contrast checker → · Palette generator →

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