#20288C#20288C

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

Color values

HEX#20288C
RGBrgb(32, 40, 140)
HSLhsl(236, 63%, 34%)
HSVhsv(236, 77%, 55%)
CMYKcmyk(77.1%, 71.4%, 0%, 45.1%)
CIE-LABlab(22.71, 33.16, -56.05)
CIE-LCHlch(22.71, 65.13, 300.61°)
OKLaboklab(34.74% 0.0029 -0.1622)
OKLCHoklch(34.74% 0.162 271)
XYZxyz(6.0865, 3.7175, 25.2026)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20288C #8C8420
analogous
#205E8C #20288C #4E208C
triadic
#20288C #8C2028 #288C20
tetradic
#20288C #8C205E #8C8420 #208C4E
square
#20288C #8C205E #8C8420 #208C4E
split-complementary
#20288C #8C4E20 #5E8C20
monochromatic
#090C28 #151A5A #20288C #2B36BE #505AD7

Accessibility & contrast

On white

12.04
#20288C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20288C
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20288C#FFFFFF#000000##FFFFFF
##20288C1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20288c;
/* rgb */ color: rgb(32, 40, 140);
/* oklch */ color: oklch(34.7% 0.162 271.0);
Tailwind
colors: {
  custom: {
    50: '#6e62af',
    500: '#20288c',
    950: '#000000',
  },
}
SCSS
$custom: #20288c;
$custom-light: #6e62af;
$custom-dark: #000000;
JSON
{
  "hex": "#20288c",
  "rgb": {
    "r": 32,
    "g": 40,
    "b": 140
  },
  "hsl": {
    "h": 235.556,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3474,
    "c": 0.16224,
    "h": 271
  },
  "luminance": 0.03718
}

Semantic roles & 50–950 ramp

primary
#20288C
secondary
#BAB24E
accent
#DA42E6
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080510
muted
#7B797F

Preview Lab

Preview with #20288C

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

Preview Lab → · Contrast checker → · Palette generator →

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