#20388B#20388B

#20388B is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.7% C 0.141 H 267.0°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#20388B
RGBrgb(32, 56, 139)
HSLhsl(227, 63%, 34%)
HSVhsv(227, 77%, 55%)
CMYKcmyk(77%, 59.7%, 0%, 45.5%)
CIE-LABlab(26.73, 22.03, -48.85)
CIE-LCHlch(26.73, 53.59, 294.28°)
OKLaboklab(37.67% -0.0074 -0.141)
OKLCHoklch(37.67% 0.141 267)
XYZxyz(6.6684, 4.9988, 25.0345)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20388B #8B7320
analogous
#206D8B #20388B #3D208B
triadic
#20388B #8B2038 #388B20
tetradic
#20388B #8B206D #8B7320 #208B3D
square
#20388B #8B206D #8B7320 #208B3D
split-complementary
#20388B #8B3D20 #6D8B20
monochromatic
#091028 #152459 #20388B #2B4CBD #4F6DD6

Accessibility & contrast

On white

10.50
#20388B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#20388B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20388B
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20388B#FFFFFF#000000##FFFFFF
##20388B1.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#003A89
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #20388b;
/* rgb */ color: rgb(32, 56, 139);
/* oklch */ color: oklch(37.7% 0.141 267.0);
Tailwind
colors: {
  custom: {
    50: '#6c6eae',
    500: '#20388b',
    950: '#000000',
  },
}
SCSS
$custom: #20388b;
$custom-light: #6c6eae;
$custom-dark: #000000;
JSON
{
  "hex": "#20388b",
  "rgb": {
    "r": 32,
    "g": 56,
    "b": 139
  },
  "hsl": {
    "h": 226.542,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37665,
    "c": 0.1412,
    "h": 267
  },
  "luminance": 0.05
}

Semantic roles & 50–950 ramp

primary
#20388B
secondary
#BAA14D
accent
#C142E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #20388B

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

Preview Lab → · Contrast checker → · Palette generator →

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