#20175E#20175E

#20175E is a dark, moderate blue. Relative luminance 0.017; OKLCH L 27.0% C 0.120 H 280.5°. Best body text is #FFFFFF at 15.61:1 contrast (WCAG AA passes).

Color values

HEX#20175E
RGBrgb(32, 23, 94)
HSLhsl(248, 61%, 23%)
HSVhsv(248, 76%, 37%)
CMYKcmyk(66%, 75.5%, 0%, 63.1%)
CIE-LABlab(13.99, 27.37, -40.78)
CIE-LCHlch(13.99, 49.11, 303.87°)
OKLaboklab(27.03% 0.0218 -0.1176)
OKLCHoklch(27.03% 0.12 280.5)
XYZxyz(2.9218, 1.7278, 10.7670)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20175E #555E17
analogous
#17315E #20175E #43175E
triadic
#20175E #5E2017 #175E20
tetradic
#20175E #5E1731 #555E17 #175E43
square
#20175E #5E1731 #555E17 #175E43
split-complementary
#20175E #5E4317 #315E17
monochromatic
#080619 #0F0B2D #20175E #31238F #412FC0

Accessibility & contrast

On white

15.61
#20175E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20175E
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20175E#FFFFFF#000000##FFFFFF
##20175E1.0015.611.3515.61
#FFFFFF15.611.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002660
Deuteranopia (green-blind)
#00215D
Tritanopia (blue-blind)
#002A38
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #20175e;
/* rgb */ color: rgb(32, 23, 94);
/* oklch */ color: oklch(27.0% 0.120 280.5);
Tailwind
colors: {
  custom: {
    50: '#64558c',
    500: '#20175e',
    950: '#000000',
  },
}
SCSS
$custom: #20175e;
$custom-light: #64558c;
$custom-dark: #000000;
JSON
{
  "hex": "#20175e",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 94
  },
  "hsl": {
    "h": 247.606,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.27031,
    "c": 0.1196,
    "h": 280.5
  },
  "luminance": 0.01728
}

Semantic roles & 50–950 ramp

primary
#20175E
secondary
#8A953C
accent
#E444D0
background
#F6F5F8
surface
#EBE8F0
border
#C6C4CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #20175E

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

Preview Lab → · Contrast checker → · Palette generator →

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