#20176D#20176D

#20176D is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.7% C 0.140 H 277.6°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#20176D
RGBrgb(32, 23, 109)
HSLhsl(246, 65%, 26%)
HSVhsv(246, 79%, 43%)
CMYKcmyk(70.6%, 78.9%, 0%, 57.3%)
CIE-LABlab(15.61, 32.61, -48.01)
CIE-LCHlch(15.61, 58.04, 304.19°)
OKLaboklab(28.67% 0.0184 -0.1387)
OKLCHoklch(28.67% 0.14 277.6)
XYZxyz(3.6615, 2.0237, 14.6627)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20176D #646D17
analogous
#17396D #20176D #4B176D
triadic
#20176D #6D2017 #176D20
tetradic
#20176D #6D1739 #646D17 #176D4B
square
#20176D #6D1739 #646D17 #176D4B
split-complementary
#20176D #6D4B17 #396D17
monochromatic
#070519 #110C3A #20176D #2F22A0 #3E2CD2

Accessibility & contrast

On white

14.95
#20176D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20176D
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20176D#FFFFFF#000000##FFFFFF
##20176D1.0014.951.4014.95
#FFFFFF14.951.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6F
Deuteranopia (green-blind)
#00236B
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #20176d;
/* rgb */ color: rgb(32, 23, 109);
/* oklch */ color: oklch(28.7% 0.140 277.6);
Tailwind
colors: {
  custom: {
    50: '#685698',
    500: '#20176d',
    950: '#000000',
  },
}
SCSS
$custom: #20176d;
$custom-light: #685698;
$custom-dark: #000000;
JSON
{
  "hex": "#20176d",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 246.279,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28672,
    "c": 0.13992,
    "h": 277.6
  },
  "luminance": 0.02024
}

Semantic roles & 50–950 ramp

primary
#20176D
secondary
#98A33D
accent
#E840D6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #20176D

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

Preview Lab → · Contrast checker → · Palette generator →

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