#20388E#20388E

#20388E is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.9% C 0.145 H 267.1°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#20388E
RGBrgb(32, 56, 142)
HSLhsl(227, 63%, 34%)
HSVhsv(227, 77%, 56%)
CMYKcmyk(77.5%, 60.6%, 0%, 44.3%)
CIE-LABlab(26.98, 23.21, -50.30)
CIE-LCHlch(26.98, 55.39, 294.78°)
OKLaboklab(37.93% -0.0074 -0.1452)
OKLCHoklch(37.93% 0.145 267.1)
XYZxyz(6.8906, 5.0877, 26.2048)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20388E #8E7620
analogous
#206F8E #20388E #3F208E
triadic
#20388E #8E2038 #388E20
tetradic
#20388E #8E206F #8E7620 #208E3F
square
#20388E #8E206F #8E7620 #208E3F
split-complementary
#20388E #8E3F20 #6F8E20
monochromatic
#09112A #15245C #20388E #2B4CC0 #516ED8

Accessibility & contrast

On white

10.41
#20388E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#20388E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20388E
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20388E#FFFFFF#000000##FFFFFF
##20388E1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#004E5D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #20388e;
/* rgb */ color: rgb(32, 56, 142);
/* oklch */ color: oklch(37.9% 0.145 267.1);
Tailwind
colors: {
  custom: {
    50: '#6d6eb0',
    500: '#20388e',
    950: '#000000',
  },
}
SCSS
$custom: #20388e;
$custom-light: #6d6eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#20388e",
  "rgb": {
    "r": 32,
    "g": 56,
    "b": 142
  },
  "hsl": {
    "h": 226.909,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37931,
    "c": 0.14544,
    "h": 267.1
  },
  "luminance": 0.05088
}

Semantic roles & 50–950 ramp

primary
#20388E
secondary
#BBA34F
accent
#C242E6
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #20388E

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

Preview Lab → · Contrast checker → · Palette generator →

#20388E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva