#20177D#20177D

#20177D is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.160 H 275.1°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#20177D
RGBrgb(32, 23, 125)
HSLhsl(245, 69%, 29%)
HSVhsv(245, 82%, 49%)
CMYKcmyk(74.4%, 81.6%, 0%, 51%)
CIE-LABlab(17.46, 38.02, -55.27)
CIE-LCHlch(17.46, 67.08, 304.52°)
OKLaboklab(30.52% 0.0143 -0.1598)
OKLCHoklch(30.52% 0.16 275.1)
XYZxyz(4.6025, 2.4001, 19.6188)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20177D #747D17
analogous
#17417D #20177D #53177D
triadic
#20177D #7D2017 #177D20
tetradic
#20177D #7D1741 #747D17 #177D53
square
#20177D #7D1741 #747D17 #177D53
split-complementary
#20177D #7D5317 #417D17
monochromatic
#07051A #130D49 #20177D #2D21B1 #4335DA

Accessibility & contrast

On white

14.19
#20177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#20177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20177D
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20177D#FFFFFF#000000##FFFFFF
##20177D1.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F80
Deuteranopia (green-blind)
#00267B
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #20177d;
/* rgb */ color: rgb(32, 23, 125);
/* oklch */ color: oklch(30.5% 0.160 275.1);
Tailwind
colors: {
  custom: {
    50: '#6c57a4',
    500: '#20177d',
    950: '#000000',
  },
}
SCSS
$custom: #20177d;
$custom-light: #6c57a4;
$custom-dark: #000000;
JSON
{
  "hex": "#20177d",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 245.294,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30516,
    "c": 0.16047,
    "h": 275.1
  },
  "luminance": 0.02401
}

Semantic roles & 50–950 ramp

primary
#20177D
secondary
#A8B23E
accent
#EC3CDC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #20177D

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

Preview Lab → · Contrast checker → · Palette generator →

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