#20117C#20117C

#20117C is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.164 H 275.9°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#20117C
RGBrgb(32, 17, 124)
HSLhsl(248, 76%, 28%)
HSVhsv(248, 86%, 49%)
CMYKcmyk(74.2%, 86.3%, 0%, 51.4%)
CIE-LABlab(16.32, 40.67, -56.52)
CIE-LCHlch(16.32, 69.64, 305.74°)
OKLaboklab(29.69% 0.017 -0.1634)
OKLCHoklch(29.69% 0.164 275.9)
XYZxyz(4.4330, 2.1628, 19.2487)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20117C #6D7C11
analogous
#11387C #20117C #55117C
triadic
#20117C #7C2011 #117C20
tetradic
#20117C #7C1138 #6D7C11 #117C55
square
#20117C #7C1138 #6D7C11 #117C55
split-complementary
#20117C #7C5511 #387C11
monochromatic
#07041B #120A46 #20117C #2E18B2 #4026E1

Accessibility & contrast

On white

14.66
#20117C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#20117C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20117C
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20117C#FFFFFF#000000##FFFFFF
##20117C1.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7F
Deuteranopia (green-blind)
#00247A
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #20117c;
/* rgb */ color: rgb(32, 17, 124);
/* oklch */ color: oklch(29.7% 0.164 275.9);
Tailwind
colors: {
  custom: {
    50: '#6c54a3',
    500: '#20117c',
    950: '#000000',
  },
}
SCSS
$custom: #20117c;
$custom-light: #6c54a3;
$custom-dark: #000000;
JSON
{
  "hex": "#20117c",
  "rgb": {
    "r": 32,
    "g": 17,
    "b": 124
  },
  "hsl": {
    "h": 248.411,
    "s": 75.887,
    "l": 27.647
  },
  "oklch": {
    "l": 0.2969,
    "c": 0.16424,
    "h": 275.9
  },
  "luminance": 0.02163
}

Semantic roles & 50–950 ramp

primary
#20117C
secondary
#A1B237
accent
#F235D8
background
#F7F4FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #20117C

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

Preview Lab → · Contrast checker → · Palette generator →

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