#20176E#20176E

#20176E is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.8% C 0.141 H 277.4°. Best body text is #FFFFFF at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#20176E
RGBrgb(32, 23, 110)
HSLhsl(246, 65%, 26%)
HSVhsv(246, 79%, 43%)
CMYKcmyk(70.9%, 79.1%, 0%, 56.9%)
CIE-LABlab(15.72, 32.96, -48.48)
CIE-LCHlch(15.72, 58.62, 304.21°)
OKLaboklab(28.79% 0.0182 -0.1401)
OKLCHoklch(28.79% 0.141 277.4)
XYZxyz(3.7156, 2.0453, 14.9478)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20176E #656E17
analogous
#17396E #20176E #4B176E
triadic
#20176E #6E2017 #176E20
tetradic
#20176E #6E1739 #656E17 #176E4B
square
#20176E #6E1739 #656E17 #176E4B
split-complementary
#20176E #6E4B17 #396E17
monochromatic
#070519 #110C3B #20176E #2F22A1 #3E2CD3

Accessibility & contrast

On white

14.90
#20176E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#20176E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20176E
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20176E#FFFFFF#000000##FFFFFF
##20176E1.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20176e;
/* rgb */ color: rgb(32, 23, 110);
/* oklch */ color: oklch(28.8% 0.141 277.4);
Tailwind
colors: {
  custom: {
    50: '#685699',
    500: '#20176e',
    950: '#000000',
  },
}
SCSS
$custom: #20176e;
$custom-light: #685699;
$custom-dark: #000000;
JSON
{
  "hex": "#20176e",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 110
  },
  "hsl": {
    "h": 246.207,
    "s": 65.414,
    "l": 26.078
  },
  "oklch": {
    "l": 0.28785,
    "c": 0.14123,
    "h": 277.4
  },
  "luminance": 0.02046
}

Semantic roles & 50–950 ramp

primary
#20176E
secondary
#99A43D
accent
#E83FD7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #20176E

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

Preview Lab → · Contrast checker → · Palette generator →

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