#20175B#20175B

#20175B is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.7% C 0.115 H 281.2°. Best body text is #FFFFFF at 15.73:1 contrast (WCAG AA passes).

Color values

HEX#20175B
RGBrgb(32, 23, 91)
HSLhsl(248, 60%, 22%)
HSVhsv(248, 75%, 36%)
CMYKcmyk(64.8%, 74.7%, 0%, 64.3%)
CIE-LABlab(13.68, 26.30, -39.28)
CIE-LCHlch(13.68, 47.27, 303.81°)
OKLaboklab(26.72% 0.0224 -0.1132)
OKLCHoklch(26.72% 0.115 281.2)
XYZxyz(2.7898, 1.6750, 10.0718)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20175B #525B17
analogous
#17305B #20175B #42175B
triadic
#20175B #5B2017 #175B20
tetradic
#20175B #5B1730 #525B17 #175B42
square
#20175B #5B1730 #525B17 #175B42
split-complementary
#20175B #5B4217 #305B17
monochromatic
#090618 #0F0B2A #20175B #31238C #4230BD

Accessibility & contrast

On white

15.73
#20175B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#20175B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20175B
15.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20175B#FFFFFF#000000##FFFFFF
##20175B1.0015.731.3415.73
#FFFFFF15.731.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255D
Deuteranopia (green-blind)
#00205A
Tritanopia (blue-blind)
#002937
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #20175b;
/* rgb */ color: rgb(32, 23, 91);
/* oklch */ color: oklch(26.7% 0.115 281.2);
Tailwind
colors: {
  custom: {
    50: '#64558a',
    500: '#20175b',
    950: '#000000',
  },
}
SCSS
$custom: #20175b;
$custom-light: #64558a;
$custom-dark: #000000;
JSON
{
  "hex": "#20175b",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 91
  },
  "hsl": {
    "h": 247.941,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26716,
    "c": 0.11539,
    "h": 281.2
  },
  "luminance": 0.01675
}

Semantic roles & 50–950 ramp

primary
#20175B
secondary
#86923C
accent
#E345CE
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #20175B

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

Preview Lab → · Contrast checker → · Palette generator →

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