#20478A#20478A

#20478A is a dark, vivid blue. Relative luminance 0.066; OKLCH L 40.9% C 0.120 H 260.4°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#20478A
RGBrgb(32, 71, 138)
HSLhsl(218, 62%, 33%)
HSVhsv(218, 77%, 54%)
CMYKcmyk(76.8%, 48.6%, 0%, 45.9%)
CIE-LABlab(30.99, 11.29, -41.34)
CIE-LCHlch(30.99, 42.85, 285.27°)
OKLaboklab(40.87% -0.02 -0.1186)
OKLCHoklch(40.87% 0.12 260.4)
XYZxyz(7.4347, 6.6477, 24.9311)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20478A #8A6320
analogous
#207C8A #20478A #2E208A
triadic
#20478A #8A2047 #478A20
tetradic
#20478A #8A207C #8A6320 #208A2E
square
#20478A #8A207C #8A6320 #208A2E
split-complementary
#20478A #8A2E20 #7C8A20
monochromatic
#091427 #142D58 #20478A #2C61BC #4E80D6

Accessibility & contrast

On white

9.01
#20478A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#20478A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20478A
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20478A#FFFFFF#000000##FFFFFF
##20478A1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234E8C
Deuteranopia (green-blind)
#054489
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #20478a;
/* rgb */ color: rgb(32, 71, 138);
/* oklch */ color: oklch(40.9% 0.120 260.4);
Tailwind
colors: {
  custom: {
    50: '#6b79ad',
    500: '#20478a',
    950: '#000000',
  },
}
SCSS
$custom: #20478a;
$custom-light: #6b79ad;
$custom-dark: #000000;
JSON
{
  "hex": "#20478a",
  "rgb": {
    "r": 32,
    "g": 71,
    "b": 138
  },
  "hsl": {
    "h": 217.925,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.40872,
    "c": 0.1203,
    "h": 260.4
  },
  "luminance": 0.06649
}

Semantic roles & 50–950 ramp

primary
#20478A
secondary
#B9914D
accent
#A942E5
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #20478A

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

Preview Lab → · Contrast checker → · Palette generator →

#20478A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva