#20177E#20177E

#20177E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.6% C 0.162 H 275.0°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#20177E
RGBrgb(32, 23, 126)
HSLhsl(245, 69%, 29%)
HSVhsv(245, 82%, 49%)
CMYKcmyk(74.6%, 81.7%, 0%, 50.6%)
CIE-LABlab(17.58, 38.35, -55.71)
CIE-LCHlch(17.58, 67.63, 304.54°)
OKLaboklab(30.63% 0.014 -0.1611)
OKLCHoklch(30.63% 0.162 275)
XYZxyz(4.6667, 2.4258, 19.9569)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20177E #757E17
analogous
#17427E #20177E #54177E
triadic
#20177E #7E2017 #177E20
tetradic
#20177E #7E1742 #757E17 #177E54
square
#20177E #7E1742 #757E17 #177E54
split-complementary
#20177E #7E5417 #427E17
monochromatic
#07051A #130E4A #20177E #2D20B2 #4435DA

Accessibility & contrast

On white

14.14
#20177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#20177E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20177E
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20177E#FFFFFF#000000##FFFFFF
##20177E1.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00267C
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #20177e;
/* rgb */ color: rgb(32, 23, 126);
/* oklch */ color: oklch(30.6% 0.162 275.0);
Tailwind
colors: {
  custom: {
    50: '#6c57a5',
    500: '#20177e',
    950: '#000000',
  },
}
SCSS
$custom: #20177e;
$custom-light: #6c57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#20177e",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 245.243,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30634,
    "c": 0.16172,
    "h": 275
  },
  "luminance": 0.02426
}

Semantic roles & 50–950 ramp

primary
#20177E
secondary
#A8B33E
accent
#EC3CDD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #20177E

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

Preview Lab → · Contrast checker → · Palette generator →

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