#20288B#20288B

#20288B is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.6% C 0.161 H 271.1°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#20288B
RGBrgb(32, 40, 139)
HSLhsl(236, 63%, 34%)
HSVhsv(236, 77%, 55%)
CMYKcmyk(77%, 71.2%, 0%, 45.5%)
CIE-LABlab(22.61, 32.80, -55.59)
CIE-LCHlch(22.61, 64.55, 300.54°)
OKLaboklab(34.64% 0.0031 -0.1609)
OKLCHoklch(34.64% 0.161 271.1)
XYZxyz(6.0131, 3.6881, 24.8161)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20288B #8B8320
analogous
#205D8B #20288B #4D208B
triadic
#20288B #8B2028 #288B20
tetradic
#20288B #8B205D #8B8320 #208B4D
square
#20288B #8B205D #8B8320 #208B4D
split-complementary
#20288B #8B4D20 #5D8B20
monochromatic
#090B28 #151A59 #20288B #2B36BD #4F59D6

Accessibility & contrast

On white

12.08
#20288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#20288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20288B
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20288B#FFFFFF#000000##FFFFFF
##20288B1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003189
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #20288b;
/* rgb */ color: rgb(32, 40, 139);
/* oklch */ color: oklch(34.6% 0.161 271.1);
Tailwind
colors: {
  custom: {
    50: '#6e62ae',
    500: '#20288b',
    950: '#000000',
  },
}
SCSS
$custom: #20288b;
$custom-light: #6e62ae;
$custom-dark: #000000;
JSON
{
  "hex": "#20288b",
  "rgb": {
    "r": 32,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 235.514,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34635,
    "c": 0.16092,
    "h": 271.1
  },
  "luminance": 0.03689
}

Semantic roles & 50–950 ramp

primary
#20288B
secondary
#BAB14D
accent
#D942E6
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #20288B

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

Preview Lab → · Contrast checker → · Palette generator →

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