#20176C#20176C

#20176C is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.6% C 0.139 H 277.7°. Best body text is #FFFFFF at 14.99:1 contrast (WCAG AA passes).

Color values

HEX#20176C
RGBrgb(32, 23, 108)
HSLhsl(246, 65%, 26%)
HSVhsv(246, 79%, 42%)
CMYKcmyk(70.4%, 78.7%, 0%, 57.6%)
CIE-LABlab(15.50, 32.27, -47.54)
CIE-LCHlch(15.50, 57.46, 304.16°)
OKLaboklab(28.56% 0.0187 -0.1373)
OKLCHoklch(28.56% 0.139 277.7)
XYZxyz(3.6080, 2.0023, 14.3808)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20176C #636C17
analogous
#17386C #20176C #4A176C
triadic
#20176C #6C2017 #176C20
tetradic
#20176C #6C1738 #636C17 #176C4A
square
#20176C #6C1738 #636C17 #176C4A
split-complementary
#20176C #6C4A17 #386C17
monochromatic
#070519 #110C3A #20176C #2F229E #3E2CD1

Accessibility & contrast

On white

14.99
#20176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#20176C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20176C
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20176C#FFFFFF#000000##FFFFFF
##20176C1.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6E
Deuteranopia (green-blind)
#00236A
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #20176c;
/* rgb */ color: rgb(32, 23, 108);
/* oklch */ color: oklch(28.6% 0.139 277.7);
Tailwind
colors: {
  custom: {
    50: '#685697',
    500: '#20176c',
    950: '#000000',
  },
}
SCSS
$custom: #20176c;
$custom-light: #685697;
$custom-dark: #000000;
JSON
{
  "hex": "#20176c",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 246.353,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28559,
    "c": 0.1386,
    "h": 277.7
  },
  "luminance": 0.02003
}

Semantic roles & 50–950 ramp

primary
#20176C
secondary
#97A23D
accent
#E840D6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #20176C

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

Preview Lab → · Contrast checker → · Palette generator →

#20176C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva