#20117E#20117E

#20117E is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.9% C 0.167 H 275.6°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#20117E
RGBrgb(32, 17, 126)
HSLhsl(248, 76%, 28%)
HSVhsv(248, 87%, 49%)
CMYKcmyk(74.6%, 86.5%, 0%, 50.6%)
CIE-LABlab(16.57, 41.30, -57.38)
CIE-LCHlch(16.57, 70.70, 305.74°)
OKLaboklab(29.94% 0.0163 -0.1658)
OKLCHoklch(29.94% 0.167 275.6)
XYZxyz(4.5608, 2.2139, 19.9216)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20117E #6F7E11
analogous
#11387E #20117E #56117E
triadic
#20117E #7E2011 #117E20
tetradic
#20117E #7E1138 #6F7E11 #117E56
square
#20117E #7E1138 #6F7E11 #117E56
split-complementary
#20117E #7E5611 #387E11
monochromatic
#07041B #120A48 #20117E #2E18B4 #4127E2

Accessibility & contrast

On white

14.56
#20117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#20117E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20117E
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20117E#FFFFFF#000000##FFFFFF
##20117E1.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D81
Deuteranopia (green-blind)
#00247C
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #20117e;
/* rgb */ color: rgb(32, 17, 126);
/* oklch */ color: oklch(29.9% 0.167 275.6);
Tailwind
colors: {
  custom: {
    50: '#6d54a5',
    500: '#20117e',
    950: '#000000',
  },
}
SCSS
$custom: #20117e;
$custom-light: #6d54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#20117e",
  "rgb": {
    "r": 32,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 248.257,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29936,
    "c": 0.16665,
    "h": 275.6
  },
  "luminance": 0.02214
}

Semantic roles & 50–950 ramp

primary
#20117E
secondary
#A3B437
accent
#F335D9
background
#F7F5FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #20117E

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

Preview Lab → · Contrast checker → · Palette generator →

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