#20128A#20128A

#20128A is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.5% C 0.180 H 273.9°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#20128A
RGBrgb(32, 18, 138)
HSLhsl(247, 77%, 31%)
HSVhsv(247, 87%, 54%)
CMYKcmyk(76.8%, 87%, 0%, 45.9%)
CIE-LABlab(18.25, 44.56, -62.18)
CIE-LCHlch(18.25, 76.50, 305.63°)
OKLaboklab(31.53% 0.0123 -0.1798)
OKLCHoklch(31.53% 0.18 273.9)
XYZxyz(5.3979, 2.5741, 24.2522)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20128A #7C8A12
analogous
#12408A #20128A #5C128A
triadic
#20128A #8A2012 #128A20
tetradic
#20128A #8A1240 #7C8A12 #128A5C
square
#20128A #8A1240 #7C8A12 #128A5C
split-complementary
#20128A #8A5C12 #408A12
monochromatic
#07041E #130B54 #20128A #2D19C0 #4732E4

Accessibility & contrast

On white

13.86
#20128A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#20128A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20128A
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20128A#FFFFFF#000000##FFFFFF
##20128A1.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328D
Deuteranopia (green-blind)
#002788
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #20128a;
/* rgb */ color: rgb(32, 18, 138);
/* oklch */ color: oklch(31.5% 0.180 273.9);
Tailwind
colors: {
  custom: {
    50: '#7055ae',
    500: '#20128a',
    950: '#000000',
  },
}
SCSS
$custom: #20128a;
$custom-light: #7055ae;
$custom-dark: #000000;
JSON
{
  "hex": "#20128a",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 138
  },
  "hsl": {
    "h": 247,
    "s": 76.923,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31528,
    "c": 0.1802,
    "h": 273.9
  },
  "luminance": 0.02575
}

Semantic roles & 50–950 ramp

primary
#20128A
secondary
#AFBF39
accent
#F334DD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #20128A

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

Preview Lab → · Contrast checker → · Palette generator →

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