#20177B#20177B

#20177B is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.158 H 275.4°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#20177B
RGBrgb(32, 23, 123)
HSLhsl(245, 68%, 29%)
HSVhsv(245, 81%, 48%)
CMYKcmyk(74%, 81.3%, 0%, 51.8%)
CIE-LABlab(17.22, 37.35, -54.39)
CIE-LCHlch(17.22, 65.98, 304.48°)
OKLaboklab(30.28% 0.0148 -0.1573)
OKLCHoklch(30.28% 0.158 275.4)
XYZxyz(4.4760, 2.3495, 18.9527)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20177B #727B17
analogous
#17407B #20177B #52177B
triadic
#20177B #7B2017 #177B20
tetradic
#20177B #7B1740 #727B17 #177B52
square
#20177B #7B1740 #727B17 #177B52
split-complementary
#20177B #7B5217 #407B17
monochromatic
#07051A #130D47 #20177B #2D21AF #4233D9

Accessibility & contrast

On white

14.29
#20177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20177B
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20177B#FFFFFF#000000##FFFFFF
##20177B1.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002679
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #20177b;
/* rgb */ color: rgb(32, 23, 123);
/* oklch */ color: oklch(30.3% 0.158 275.4);
Tailwind
colors: {
  custom: {
    50: '#6c57a2',
    500: '#20177b',
    950: '#000000',
  },
}
SCSS
$custom: #20177b;
$custom-light: #6c57a2;
$custom-dark: #000000;
JSON
{
  "hex": "#20177b",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 245.4,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30281,
    "c": 0.15796,
    "h": 275.4
  },
  "luminance": 0.0235
}

Semantic roles & 50–950 ramp

primary
#20177B
secondary
#A6B03E
accent
#EB3CDC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #20177B

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

Preview Lab → · Contrast checker → · Palette generator →

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