#20388F#20388F

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

Color values

HEX#20388F
RGBrgb(32, 56, 143)
HSLhsl(227, 63%, 34%)
HSVhsv(227, 78%, 56%)
CMYKcmyk(77.6%, 60.8%, 0%, 43.9%)
CIE-LABlab(27.07, 23.61, -50.78)
CIE-LCHlch(27.07, 55.99, 294.93°)
OKLaboklab(38.02% -0.0073 -0.1466)
OKLCHoklch(38.02% 0.147 267.1)
XYZxyz(6.9660, 5.1178, 26.6020)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20388F #8F7720
analogous
#20708F #20388F #40208F
triadic
#20388F #8F2038 #388F20
tetradic
#20388F #8F2070 #8F7720 #208F40
square
#20388F #8F2070 #8F7720 #208F40
split-complementary
#20388F #8F4020 #708F20
monochromatic
#0A112B #15245D #20388F #2B4CC1 #516ED8

Accessibility & contrast

On white

10.38
#20388F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20388F
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20388F#FFFFFF#000000##FFFFFF
##20388F1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#003B8D
Tritanopia (blue-blind)
#004E5E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #20388f;
/* rgb */ color: rgb(32, 56, 143);
/* oklch */ color: oklch(38.0% 0.147 267.1);
Tailwind
colors: {
  custom: {
    50: '#6e6eb1',
    500: '#20388f',
    950: '#000000',
  },
}
SCSS
$custom: #20388f;
$custom-light: #6e6eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#20388f",
  "rgb": {
    "r": 32,
    "g": 56,
    "b": 143
  },
  "hsl": {
    "h": 227.027,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38021,
    "c": 0.14683,
    "h": 267.1
  },
  "luminance": 0.05119
}

Semantic roles & 50–950 ramp

primary
#20388F
secondary
#BBA44F
accent
#C341E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #20388F

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

Preview Lab → · Contrast checker → · Palette generator →

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