#20288D#20288D

#20288D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.8% C 0.164 H 271.0°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#20288D
RGBrgb(32, 40, 141)
HSLhsl(236, 63%, 34%)
HSVhsv(236, 77%, 55%)
CMYKcmyk(77.3%, 71.6%, 0%, 44.7%)
CIE-LABlab(22.82, 33.53, -56.50)
CIE-LCHlch(22.82, 65.70, 300.69°)
OKLaboklab(34.84% 0.0028 -0.1635)
OKLCHoklch(34.84% 0.164 271)
XYZxyz(6.1605, 3.7471, 25.5927)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20288D #8D8520
analogous
#205F8D #20288D #4F208D
triadic
#20288D #8D2028 #288D20
tetradic
#20288D #8D205F #8D8520 #208D4F
square
#20288D #8D205F #8D8520 #208D4F
split-complementary
#20288D #8D4F20 #5F8D20
monochromatic
#090C29 #151A5B #20288D #2B36BF #505AD7

Accessibility & contrast

On white

12.00
#20288D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#20288D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20288D
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20288D#FFFFFF#000000##FFFFFF
##20288D1.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#00318B
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #20288d;
/* rgb */ color: rgb(32, 40, 141);
/* oklch */ color: oklch(34.8% 0.164 271.0);
Tailwind
colors: {
  custom: {
    50: '#6e62af',
    500: '#20288d',
    950: '#000000',
  },
}
SCSS
$custom: #20288d;
$custom-light: #6e62af;
$custom-dark: #000000;
JSON
{
  "hex": "#20288d",
  "rgb": {
    "r": 32,
    "g": 40,
    "b": 141
  },
  "hsl": {
    "h": 235.596,
    "s": 63.006,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34844,
    "c": 0.16356,
    "h": 271
  },
  "luminance": 0.03748
}

Semantic roles & 50–950 ramp

primary
#20288D
secondary
#BAB34E
accent
#DA42E6
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080511
muted
#7B7980

Preview Lab

Preview with #20288D

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

Preview Lab → · Contrast checker → · Palette generator →

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