#20128E#20128E

#20128E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.0% C 0.185 H 273.4°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#20128E
RGBrgb(32, 18, 142)
HSLhsl(247, 78%, 31%)
HSVhsv(247, 87%, 56%)
CMYKcmyk(77.5%, 87.3%, 0%, 44.3%)
CIE-LABlab(18.77, 45.78, -63.83)
CIE-LCHlch(18.77, 78.55, 305.65°)
OKLaboklab(32.03% 0.0111 -0.1845)
OKLCHoklch(32.03% 0.185 273.4)
XYZxyz(5.6928, 2.6921, 25.8055)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20128E #808E12
analogous
#12428E #20128E #5E128E
triadic
#20128E #8E2012 #128E20
tetradic
#20128E #8E1242 #808E12 #128E5E
square
#20128E #8E1242 #808E12 #128E5E
split-complementary
#20128E #8E5E12 #428E12
monochromatic
#080421 #140B58 #20128E #2C19C4 #4935E5

Accessibility & contrast

On white

13.65
#20128E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#20128E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20128E
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20128E#FFFFFF#000000##FFFFFF
##20128E1.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20128e;
/* rgb */ color: rgb(32, 18, 142);
/* oklch */ color: oklch(32.0% 0.185 273.4);
Tailwind
colors: {
  custom: {
    50: '#7156b0',
    500: '#20128e',
    950: '#000000',
  },
}
SCSS
$custom: #20128e;
$custom-light: #7156b0;
$custom-dark: #000000;
JSON
{
  "hex": "#20128e",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 142
  },
  "hsl": {
    "h": 246.774,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32028,
    "c": 0.18487,
    "h": 273.4
  },
  "luminance": 0.02693
}

Semantic roles & 50–950 ramp

primary
#20128E
secondary
#B3C23A
accent
#F434DE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #20128E

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

Preview Lab → · Contrast checker → · Palette generator →

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