#20288E#20288E

#20288E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.9% C 0.165 H 270.9°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#20288E
RGBrgb(32, 40, 142)
HSLhsl(236, 63%, 34%)
HSVhsv(236, 77%, 56%)
CMYKcmyk(77.5%, 71.8%, 0%, 44.3%)
CIE-LABlab(22.92, 33.90, -56.95)
CIE-LCHlch(22.92, 66.28, 300.76°)
OKLaboklab(34.95% 0.0027 -0.1649)
OKLCHoklch(34.95% 0.165 270.9)
XYZxyz(6.2353, 3.7770, 25.9864)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20288E #8E8620
analogous
#205F8E #20288E #4F208E
triadic
#20288E #8E2028 #288E20
tetradic
#20288E #8E205F #8E8620 #208E4F
square
#20288E #8E205F #8E8620 #208E4F
split-complementary
#20288E #8E4F20 #5F8E20
monochromatic
#090C2A #151A5C #20288E #2B36C0 #515BD8

Accessibility & contrast

On white

11.96
#20288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#20288E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20288E
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20288E#FFFFFF#000000##FFFFFF
##20288E1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #20288e;
/* rgb */ color: rgb(32, 40, 142);
/* oklch */ color: oklch(34.9% 0.165 270.9);
Tailwind
colors: {
  custom: {
    50: '#6f62b0',
    500: '#20288e',
    950: '#000000',
  },
}
SCSS
$custom: #20288e;
$custom-light: #6f62b0;
$custom-dark: #000000;
JSON
{
  "hex": "#20288e",
  "rgb": {
    "r": 32,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 235.636,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.3495,
    "c": 0.16488,
    "h": 270.9
  },
  "luminance": 0.03778
}

Semantic roles & 50–950 ramp

primary
#20288E
secondary
#BBB34F
accent
#DA42E6
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #20288E

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

Preview Lab → · Contrast checker → · Palette generator →

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