#20176B#20176B

#20176B is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.4% C 0.137 H 277.9°. Best body text is #FFFFFF at 15.04:1 contrast (WCAG AA passes).

Color values

HEX#20176B
RGBrgb(32, 23, 107)
HSLhsl(246, 65%, 25%)
HSVhsv(246, 79%, 42%)
CMYKcmyk(70.1%, 78.5%, 0%, 58%)
CIE-LABlab(15.39, 31.92, -47.07)
CIE-LCHlch(15.39, 56.88, 304.14°)
OKLaboklab(28.45% 0.0189 -0.136)
OKLCHoklch(28.45% 0.137 277.9)
XYZxyz(3.5550, 1.9811, 14.1021)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20176B #626B17
analogous
#17386B #20176B #4A176B
triadic
#20176B #6B2017 #176B20
tetradic
#20176B #6B1738 #626B17 #176B4A
square
#20176B #6B1738 #626B17 #176B4A
split-complementary
#20176B #6B4A17 #386B17
monochromatic
#080519 #110C39 #20176B #2F229D #3E2DD0

Accessibility & contrast

On white

15.04
#20176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20176B
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20176B#FFFFFF#000000##FFFFFF
##20176B1.0015.041.4015.04
#FFFFFF15.041.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6D
Deuteranopia (green-blind)
#002369
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #20176b;
/* rgb */ color: rgb(32, 23, 107);
/* oklch */ color: oklch(28.4% 0.137 277.9);
Tailwind
colors: {
  custom: {
    50: '#685696',
    500: '#20176b',
    950: '#000000',
  },
}
SCSS
$custom: #20176b;
$custom-light: #685696;
$custom-dark: #000000;
JSON
{
  "hex": "#20176b",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 246.429,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28447,
    "c": 0.13728,
    "h": 277.9
  },
  "luminance": 0.01981
}

Semantic roles & 50–950 ramp

primary
#20176B
secondary
#96A13D
accent
#E840D6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #20176B

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

Preview Lab → · Contrast checker → · Palette generator →

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