#20175A#20175A

#20175A is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.6% C 0.114 H 281.4°. Best body text is #FFFFFF at 15.77:1 contrast (WCAG AA passes).

Color values

HEX#20175A
RGBrgb(32, 23, 90)
HSLhsl(248, 59%, 22%)
HSVhsv(248, 74%, 35%)
CMYKcmyk(64.4%, 74.4%, 0%, 64.7%)
CIE-LABlab(13.58, 25.95, -38.77)
CIE-LCHlch(13.58, 46.65, 303.79°)
OKLaboklab(26.61% 0.0226 -0.1117)
OKLCHoklch(26.61% 0.114 281.4)
XYZxyz(2.7469, 1.6579, 9.8461)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20175A #515A17
analogous
#172F5A #20175A #42175A
triadic
#20175A #5A2017 #175A20
tetradic
#20175A #5A172F #515A17 #175A42
square
#20175A #5A172F #515A17 #175A42
split-complementary
#20175A #5A4217 #2F5A17
monochromatic
#090618 #0F0B29 #20175A #31238B #4330BB

Accessibility & contrast

On white

15.77
#20175A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#20175A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20175A
15.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20175A#FFFFFF#000000##FFFFFF
##20175A1.0015.771.3315.77
#FFFFFF15.771.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255C
Deuteranopia (green-blind)
#002059
Tritanopia (blue-blind)
#002936
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #20175a;
/* rgb */ color: rgb(32, 23, 90);
/* oklch */ color: oklch(26.6% 0.114 281.4);
Tailwind
colors: {
  custom: {
    50: '#635589',
    500: '#20175a',
    950: '#000000',
  },
}
SCSS
$custom: #20175a;
$custom-light: #635589;
$custom-dark: #000000;
JSON
{
  "hex": "#20175a",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 90
  },
  "hsl": {
    "h": 248.06,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.26612,
    "c": 0.11397,
    "h": 281.4
  },
  "luminance": 0.01658
}

Semantic roles & 50–950 ramp

primary
#20175A
secondary
#85913C
accent
#E245CD
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #20175A

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

Preview Lab → · Contrast checker → · Palette generator →

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