#20176F#20176F

#20176F is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.9% C 0.143 H 277.2°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#20176F
RGBrgb(32, 23, 111)
HSLhsl(246, 66%, 26%)
HSVhsv(246, 79%, 44%)
CMYKcmyk(71.2%, 79.3%, 0%, 56.5%)
CIE-LABlab(15.84, 33.30, -48.94)
CIE-LCHlch(15.84, 59.20, 304.23°)
OKLaboklab(28.9% 0.0179 -0.1414)
OKLCHoklch(28.9% 0.143 277.2)
XYZxyz(3.7704, 2.0672, 15.2362)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20176F #666F17
analogous
#173A6F #20176F #4C176F
triadic
#20176F #6F2017 #176F20
tetradic
#20176F #6F173A #666F17 #176F4C
square
#20176F #6F173A #666F17 #176F4C
split-complementary
#20176F #6F4C17 #3A6F17
monochromatic
#070519 #110C3C #20176F #2F22A2 #3E2DD3

Accessibility & contrast

On white

14.86
#20176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20176F
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20176F#FFFFFF#000000##FFFFFF
##20176F1.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00246D
Tritanopia (blue-blind)
#003142
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #20176f;
/* rgb */ color: rgb(32, 23, 111);
/* oklch */ color: oklch(28.9% 0.143 277.2);
Tailwind
colors: {
  custom: {
    50: '#695699',
    500: '#20176f',
    950: '#000000',
  },
}
SCSS
$custom: #20176f;
$custom-light: #695699;
$custom-dark: #000000;
JSON
{
  "hex": "#20176f",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 246.136,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.28898,
    "c": 0.14255,
    "h": 277.2
  },
  "luminance": 0.02068
}

Semantic roles & 50–950 ramp

primary
#20176F
secondary
#9AA53D
accent
#E93FD7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #20176F

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

Preview Lab → · Contrast checker → · Palette generator →

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