#20118E#20118E

#20118E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.186 H 273.5°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#20118E
RGBrgb(32, 17, 142)
HSLhsl(247, 79%, 31%)
HSVhsv(247, 88%, 56%)
CMYKcmyk(77.5%, 88%, 0%, 44.3%)
CIE-LABlab(18.63, 46.18, -64.06)
CIE-LCHlch(18.63, 78.97, 305.79°)
OKLaboklab(31.93% 0.0114 -0.1852)
OKLCHoklch(31.93% 0.186 273.5)
XYZxyz(5.6770, 2.6604, 25.8003)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20118E #7F8E11
analogous
#11408E #20118E #5E118E
triadic
#20118E #8E2011 #118E20
tetradic
#20118E #8E1140 #7F8E11 #118E5E
square
#20118E #8E1140 #7F8E11 #118E5E
split-complementary
#20118E #8E5E11 #408E11
monochromatic
#070421 #140A57 #20118E #2C18C5 #4833E7

Accessibility & contrast

On white

13.71
#20118E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#20118E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20118E
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20118E#FFFFFF#000000##FFFFFF
##20118E1.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003391
Deuteranopia (green-blind)
#00278C
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #20118e;
/* rgb */ color: rgb(32, 17, 142);
/* oklch */ color: oklch(31.9% 0.186 273.5);
Tailwind
colors: {
  custom: {
    50: '#7155b0',
    500: '#20118e',
    950: '#000000',
  },
}
SCSS
$custom: #20118e;
$custom-light: #7155b0;
$custom-dark: #000000;
JSON
{
  "hex": "#20118e",
  "rgb": {
    "r": 32,
    "g": 17,
    "b": 142
  },
  "hsl": {
    "h": 247.2,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31934,
    "c": 0.18553,
    "h": 273.5
  },
  "luminance": 0.02661
}

Semantic roles & 50–950 ramp

primary
#20118E
secondary
#B2C238
accent
#F533DE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #20118E

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

Preview Lab → · Contrast checker → · Palette generator →

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