#20174F#20174F

#20174F is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.5% C 0.098 H 284.4°. Best body text is #FFFFFF at 16.19:1 contrast (WCAG AA passes).

Color values

HEX#20174F
RGBrgb(32, 23, 79)
HSLhsl(250, 55%, 20%)
HSVhsv(250, 71%, 31%)
CMYKcmyk(59.5%, 70.9%, 0%, 69%)
CIE-LABlab(12.51, 22.01, -33.05)
CIE-LCHlch(12.51, 39.71, 303.66°)
OKLaboklab(25.51% 0.0243 -0.0949)
OKLCHoklch(25.51% 0.098 284.4)
XYZxyz(2.3129, 1.4843, 7.5602)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20174F #464F17
analogous
#172A4F #20174F #3C174F
triadic
#20174F #4F2017 #174F20
tetradic
#20174F #4F172A #464F17 #174F3C
square
#20174F #4F172A #464F17 #174F3C
split-complementary
#20174F #4F3C17 #2A4F17
monochromatic
#0A0718 #0D0920 #20174F #33257E #4633AE

Accessibility & contrast

On white

16.19
#20174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#20174F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20174F
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20174F#FFFFFF#000000##FFFFFF
##20174F1.0016.191.3016.19
#FFFFFF16.191.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002251
Deuteranopia (green-blind)
#001F4E
Tritanopia (blue-blind)
#0B2530
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #20174f;
/* rgb */ color: rgb(32, 23, 79);
/* oklch */ color: oklch(25.5% 0.098 284.4);
Tailwind
colors: {
  custom: {
    50: '#615481',
    500: '#20174f',
    950: '#000000',
  },
}
SCSS
$custom: #20174f;
$custom-light: #615481;
$custom-dark: #000000;
JSON
{
  "hex": "#20174f",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 249.643,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.25509,
    "c": 0.09799,
    "h": 284.4
  },
  "luminance": 0.01484
}

Semantic roles & 50–950 ramp

primary
#20174F
secondary
#7A863C
accent
#DE4AC6
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05030A
muted
#79787C

Preview Lab

Preview with #20174F

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

Preview Lab → · Contrast checker → · Palette generator →

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