#20288A#20288A

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

Color values

HEX#20288A
RGBrgb(32, 40, 138)
HSLhsl(235, 62%, 33%)
HSVhsv(235, 77%, 54%)
CMYKcmyk(76.8%, 71%, 0%, 45.9%)
CIE-LABlab(22.51, 32.43, -55.14)
CIE-LCHlch(22.51, 63.97, 300.46°)
OKLaboklab(34.53% 0.0032 -0.1596)
OKLCHoklch(34.53% 0.16 271.1)
XYZxyz(5.9403, 3.6590, 24.4330)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20288A #8A8220
analogous
#205D8A #20288A #4D208A
triadic
#20288A #8A2028 #288A20
tetradic
#20288A #8A205D #8A8220 #208A4D
square
#20288A #8A205D #8A8220 #208A4D
split-complementary
#20288A #8A4D20 #5D8A20
monochromatic
#090B27 #141A58 #20288A #2C36BC #4E59D6

Accessibility & contrast

On white

12.12
#20288A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#20288A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20288A
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20288A#FFFFFF#000000##FFFFFF
##20288A1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20288a;
/* rgb */ color: rgb(32, 40, 138);
/* oklch */ color: oklch(34.5% 0.160 271.1);
Tailwind
colors: {
  custom: {
    50: '#6e62ad',
    500: '#20288a',
    950: '#000000',
  },
}
SCSS
$custom: #20288a;
$custom-light: #6e62ad;
$custom-dark: #000000;
JSON
{
  "hex": "#20288a",
  "rgb": {
    "r": 32,
    "g": 40,
    "b": 138
  },
  "hsl": {
    "h": 235.472,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34531,
    "c": 0.15959,
    "h": 271.1
  },
  "luminance": 0.0366
}

Semantic roles & 50–950 ramp

primary
#20288A
secondary
#B9B14D
accent
#D942E5
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #20288A

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

Preview Lab → · Contrast checker → · Palette generator →

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