#20177A#20177A

#20177A is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.157 H 275.5°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#20177A
RGBrgb(32, 23, 122)
HSLhsl(245, 68%, 28%)
HSVhsv(245, 81%, 48%)
CMYKcmyk(73.8%, 81.1%, 0%, 52.2%)
CIE-LABlab(17.11, 37.02, -53.94)
CIE-LCHlch(17.11, 65.42, 304.46°)
OKLaboklab(30.16% 0.0151 -0.156)
OKLCHoklch(30.16% 0.157 275.5)
XYZxyz(4.4138, 2.3246, 18.6247)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20177A #717A17
analogous
#173F7A #20177A #51177A
triadic
#20177A #7A2017 #177A20
tetradic
#20177A #7A173F #717A17 #177A51
square
#20177A #7A173F #717A17 #177A51
split-complementary
#20177A #7A5117 #3F7A17
monochromatic
#07051A #120D47 #20177A #2E21AD #4233D9

Accessibility & contrast

On white

14.33
#20177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#20177A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20177A
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20177A#FFFFFF#000000##FFFFFF
##20177A1.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7D
Deuteranopia (green-blind)
#002678
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #20177a;
/* rgb */ color: rgb(32, 23, 122);
/* oklch */ color: oklch(30.2% 0.157 275.5);
Tailwind
colors: {
  custom: {
    50: '#6b57a2',
    500: '#20177a',
    950: '#000000',
  },
}
SCSS
$custom: #20177a;
$custom-light: #6b57a2;
$custom-dark: #000000;
JSON
{
  "hex": "#20177a",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 245.455,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30164,
    "c": 0.15669,
    "h": 275.5
  },
  "luminance": 0.02325
}

Semantic roles & 50–950 ramp

primary
#20177A
secondary
#A5AF3E
accent
#EB3DDB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #20177A

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

Preview Lab → · Contrast checker → · Palette generator →

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