#20478C#20478C

#20478C is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.0% C 0.123 H 260.8°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#20478C
RGBrgb(32, 71, 140)
HSLhsl(218, 63%, 34%)
HSVhsv(218, 77%, 55%)
CMYKcmyk(77.1%, 49.3%, 0%, 45.1%)
CIE-LABlab(31.13, 12.09, -42.35)
CIE-LCHlch(31.13, 44.04, 285.93°)
OKLaboklab(41.02% -0.0196 -0.1216)
OKLCHoklch(41.02% 0.123 260.8)
XYZxyz(7.5808, 6.7062, 25.7007)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20478C #8C6520
analogous
#207D8C #20478C #2F208C
triadic
#20478C #8C2047 #478C20
tetradic
#20478C #8C207D #8C6520 #208C2F
square
#20478C #8C207D #8C6520 #208C2F
split-complementary
#20478C #8C2F20 #7D8C20
monochromatic
#091428 #152E5A #20478C #2B60BE #5080D7

Accessibility & contrast

On white

8.97
#20478C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#20478C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20478C
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20478C#FFFFFF#000000##FFFFFF
##20478C1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204F8F
Deuteranopia (green-blind)
#00458B
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #20478c;
/* rgb */ color: rgb(32, 71, 140);
/* oklch */ color: oklch(41.0% 0.123 260.8);
Tailwind
colors: {
  custom: {
    50: '#6c79ae',
    500: '#20478c',
    950: '#000000',
  },
}
SCSS
$custom: #20478c;
$custom-light: #6c79ae;
$custom-dark: #000000;
JSON
{
  "hex": "#20478c",
  "rgb": {
    "r": 32,
    "g": 71,
    "b": 140
  },
  "hsl": {
    "h": 218.333,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.41022,
    "c": 0.12317,
    "h": 260.8
  },
  "luminance": 0.06707
}

Semantic roles & 50–950 ramp

primary
#20478C
secondary
#BA934E
accent
#AB42E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #20478C

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

Preview Lab → · Contrast checker → · Palette generator →

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