#20288F#20288F

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

Color values

HEX#20288F
RGBrgb(32, 40, 143)
HSLhsl(236, 63%, 34%)
HSVhsv(236, 78%, 56%)
CMYKcmyk(77.6%, 72%, 0%, 43.9%)
CIE-LABlab(23.02, 34.26, -57.41)
CIE-LCHlch(23.02, 66.85, 300.83°)
OKLaboklab(35.06% 0.0026 -0.1662)
OKLCHoklch(35.06% 0.166 270.9)
XYZxyz(6.3107, 3.8071, 26.3835)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20288F #8F8720
analogous
#20608F #20288F #50208F
triadic
#20288F #8F2028 #288F20
tetradic
#20288F #8F2060 #8F8720 #208F50
square
#20288F #8F2060 #8F8720 #208F50
split-complementary
#20288F #8F5020 #608F20
monochromatic
#0A0C2B #151A5D #20288F #2B36C1 #515BD8

Accessibility & contrast

On white

11.92
#20288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20288F
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20288F#FFFFFF#000000##FFFFFF
##20288F1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #20288f;
/* rgb */ color: rgb(32, 40, 143);
/* oklch */ color: oklch(35.1% 0.166 270.9);
Tailwind
colors: {
  custom: {
    50: '#6f62b1',
    500: '#20288f',
    950: '#000000',
  },
}
SCSS
$custom: #20288f;
$custom-light: #6f62b1;
$custom-dark: #000000;
JSON
{
  "hex": "#20288f",
  "rgb": {
    "r": 32,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 235.676,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35055,
    "c": 0.16619,
    "h": 270.9
  },
  "luminance": 0.03808
}

Semantic roles & 50–950 ramp

primary
#20288F
secondary
#BBB44F
accent
#DB41E6
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #20288F

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

Preview Lab → · Contrast checker → · Palette generator →

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