#20117F#20117F

#20117F is a dark, vivid blue. Relative luminance 0.022; OKLCH L 30.1% C 0.168 H 275.5°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#20117F
RGBrgb(32, 17, 127)
HSLhsl(248, 76%, 28%)
HSVhsv(248, 87%, 50%)
CMYKcmyk(74.8%, 86.6%, 0%, 50.2%)
CIE-LABlab(16.70, 41.61, -57.81)
CIE-LCHlch(16.70, 71.23, 305.74°)
OKLaboklab(30.06% 0.016 -0.1671)
OKLCHoklch(30.06% 0.168 275.5)
XYZxyz(4.6256, 2.2398, 20.2631)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20117F #707F11
analogous
#11397F #20117F #57117F
triadic
#20117F #7F2011 #117F20
tetradic
#20117F #7F1139 #707F11 #117F57
square
#20117F #7F1139 #707F11 #117F57
split-complementary
#20117F #7F5711 #397F11
monochromatic
#07041B #120A49 #20117F #2E18B5 #4228E2

Accessibility & contrast

On white

14.50
#20117F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#20117F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20117F
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20117F#FFFFFF#000000##FFFFFF
##20117F1.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00247D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #20117f;
/* rgb */ color: rgb(32, 17, 127);
/* oklch */ color: oklch(30.1% 0.168 275.5);
Tailwind
colors: {
  custom: {
    50: '#6d54a5',
    500: '#20117f',
    950: '#000000',
  },
}
SCSS
$custom: #20117f;
$custom-light: #6d54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#20117f",
  "rgb": {
    "r": 32,
    "g": 17,
    "b": 127
  },
  "hsl": {
    "h": 248.182,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3006,
    "c": 0.16786,
    "h": 275.5
  },
  "luminance": 0.0224
}

Semantic roles & 50–950 ramp

primary
#20117F
secondary
#A4B537
accent
#F335D9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #20117F

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

Preview Lab → · Contrast checker → · Palette generator →

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