#20175F#20175F

#20175F is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.1% C 0.121 H 280.3°. Best body text is #FFFFFF at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#20175F
RGBrgb(32, 23, 95)
HSLhsl(248, 61%, 23%)
HSVhsv(248, 76%, 37%)
CMYKcmyk(66.3%, 75.8%, 0%, 62.7%)
CIE-LABlab(14.09, 27.72, -41.28)
CIE-LCHlch(14.09, 49.72, 303.89°)
OKLaboklab(27.14% 0.0216 -0.119)
OKLCHoklch(27.14% 0.121 280.3)
XYZxyz(2.9670, 1.7459, 11.0049)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20175F #565F17
analogous
#17325F #20175F #44175F
triadic
#20175F #5F2017 #175F20
tetradic
#20175F #5F1732 #565F17 #175F44
square
#20175F #5F1732 #565F17 #175F44
split-complementary
#20175F #5F4417 #325F17
monochromatic
#080619 #0F0B2E #20175F #312390 #412FC2

Accessibility & contrast

On white

15.56
#20175F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#20175F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20175F
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20175F#FFFFFF#000000##FFFFFF
##20175F1.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002661
Deuteranopia (green-blind)
#00215E
Tritanopia (blue-blind)
#002B39
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #20175f;
/* rgb */ color: rgb(32, 23, 95);
/* oklch */ color: oklch(27.1% 0.121 280.3);
Tailwind
colors: {
  custom: {
    50: '#65558d',
    500: '#20175f',
    950: '#000000',
  },
}
SCSS
$custom: #20175f;
$custom-light: #65558d;
$custom-dark: #000000;
JSON
{
  "hex": "#20175f",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 95
  },
  "hsl": {
    "h": 247.5,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.27137,
    "c": 0.12099,
    "h": 280.3
  },
  "luminance": 0.01746
}

Semantic roles & 50–950 ramp

primary
#20175F
secondary
#8B963C
accent
#E444D0
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #20175F

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

Preview Lab → · Contrast checker → · Palette generator →

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