#20175D#20175D

#20175D is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.9% C 0.118 H 280.7°. Best body text is #FFFFFF at 15.65:1 contrast (WCAG AA passes).

Color values

HEX#20175D
RGBrgb(32, 23, 93)
HSLhsl(248, 60%, 23%)
HSVhsv(248, 75%, 36%)
CMYKcmyk(65.6%, 75.3%, 0%, 63.5%)
CIE-LABlab(13.89, 27.01, -40.28)
CIE-LCHlch(13.89, 48.50, 303.85°)
OKLaboklab(26.93% 0.022 -0.1161)
OKLCHoklch(26.93% 0.118 280.7)
XYZxyz(2.8772, 1.7100, 10.5322)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20175D #545D17
analogous
#17315D #20175D #43175D
triadic
#20175D #5D2017 #175D20
tetradic
#20175D #5D1731 #545D17 #175D43
square
#20175D #5D1731 #545D17 #175D43
split-complementary
#20175D #5D4317 #315D17
monochromatic
#080619 #0F0B2C #20175D #31238E #422FBF

Accessibility & contrast

On white

15.65
#20175D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20175D
15.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20175D#FFFFFF#000000##FFFFFF
##20175D1.0015.651.3415.65
#FFFFFF15.651.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265F
Deuteranopia (green-blind)
#00215C
Tritanopia (blue-blind)
#002A38
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #20175d;
/* rgb */ color: rgb(32, 23, 93);
/* oklch */ color: oklch(26.9% 0.118 280.7);
Tailwind
colors: {
  custom: {
    50: '#64558c',
    500: '#20175d',
    950: '#000000',
  },
}
SCSS
$custom: #20175d;
$custom-light: #64558c;
$custom-dark: #000000;
JSON
{
  "hex": "#20175d",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 93
  },
  "hsl": {
    "h": 247.714,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.26926,
    "c": 0.1182,
    "h": 280.7
  },
  "luminance": 0.0171
}

Semantic roles & 50–950 ramp

primary
#20175D
secondary
#89943C
accent
#E344CF
background
#F6F5F8
surface
#EBE8F0
border
#C6C4CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #20175D

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

Preview Lab → · Contrast checker → · Palette generator →

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