#20388D#20388D

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

Color values

HEX#20388D
RGBrgb(32, 56, 141)
HSLhsl(227, 63%, 34%)
HSVhsv(227, 77%, 55%)
CMYKcmyk(77.3%, 60.3%, 0%, 44.7%)
CIE-LABlab(26.90, 22.82, -49.82)
CIE-LCHlch(26.90, 54.79, 294.61°)
OKLaboklab(37.84% -0.0074 -0.1438)
OKLCHoklch(37.84% 0.144 267.1)
XYZxyz(6.8159, 5.0578, 25.8112)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20388D #8D7520
analogous
#206F8D #20388D #3F208D
triadic
#20388D #8D2038 #388D20
tetradic
#20388D #8D206F #8D7520 #208D3F
square
#20388D #8D206F #8D7520 #208D3F
split-complementary
#20388D #8D3F20 #6F8D20
monochromatic
#091029 #15245B #20388D #2B4CBF #506ED7

Accessibility & contrast

On white

10.44
#20388D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#20388D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20388D
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20388D#FFFFFF#000000##FFFFFF
##20388D1.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#003B8B
Tritanopia (blue-blind)
#004D5D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #20388d;
/* rgb */ color: rgb(32, 56, 141);
/* oklch */ color: oklch(37.8% 0.144 267.1);
Tailwind
colors: {
  custom: {
    50: '#6d6eaf',
    500: '#20388d',
    950: '#000000',
  },
}
SCSS
$custom: #20388d;
$custom-light: #6d6eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#20388d",
  "rgb": {
    "r": 32,
    "g": 56,
    "b": 141
  },
  "hsl": {
    "h": 226.789,
    "s": 63.006,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37842,
    "c": 0.14403,
    "h": 267.1
  },
  "luminance": 0.05059
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20388D

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

Preview Lab → · Contrast checker → · Palette generator →

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