#20388C#20388C

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

Color values

HEX#20388C
RGBrgb(32, 56, 140)
HSLhsl(227, 63%, 34%)
HSVhsv(227, 77%, 55%)
CMYKcmyk(77.1%, 60%, 0%, 45.1%)
CIE-LABlab(26.81, 22.43, -49.33)
CIE-LCHlch(26.81, 54.19, 294.45°)
OKLaboklab(37.75% -0.0074 -0.1424)
OKLCHoklch(37.75% 0.143 267)
XYZxyz(6.7418, 5.0281, 25.4211)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20388C #8C7420
analogous
#206E8C #20388C #3E208C
triadic
#20388C #8C2038 #388C20
tetradic
#20388C #8C206E #8C7420 #208C3E
square
#20388C #8C206E #8C7420 #208C3E
split-complementary
#20388C #8C3E20 #6E8C20
monochromatic
#091028 #15245A #20388C #2B4CBE #506ED7

Accessibility & contrast

On white

10.47
#20388C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20388C
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20388C#FFFFFF#000000##FFFFFF
##20388C1.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458F
Deuteranopia (green-blind)
#003B8A
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #20388c;
/* rgb */ color: rgb(32, 56, 140);
/* oklch */ color: oklch(37.8% 0.143 267.0);
Tailwind
colors: {
  custom: {
    50: '#6d6eae',
    500: '#20388c',
    950: '#000000',
  },
}
SCSS
$custom: #20388c;
$custom-light: #6d6eae;
$custom-dark: #000000;
JSON
{
  "hex": "#20388c",
  "rgb": {
    "r": 32,
    "g": 56,
    "b": 140
  },
  "hsl": {
    "h": 226.667,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37753,
    "c": 0.14261,
    "h": 267
  },
  "luminance": 0.05029
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20388C

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

Preview Lab → · Contrast checker → · Palette generator →

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