#20478B#20478B

#20478B is a dark, vivid blue. Relative luminance 0.067; OKLCH L 40.9% C 0.122 H 260.6°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#20478B
RGBrgb(32, 71, 139)
HSLhsl(218, 63%, 34%)
HSVhsv(218, 77%, 55%)
CMYKcmyk(77%, 48.9%, 0%, 45.5%)
CIE-LABlab(31.06, 11.69, -41.84)
CIE-LCHlch(31.06, 43.44, 285.61°)
OKLaboklab(40.95% -0.0198 -0.1201)
OKLCHoklch(40.95% 0.122 260.6)
XYZxyz(7.5074, 6.6768, 25.3142)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20478B #8B6420
analogous
#207C8B #20478B #2E208B
triadic
#20478B #8B2047 #478B20
tetradic
#20478B #8B207C #8B6420 #208B2E
square
#20478B #8B207C #8B6420 #208B2E
split-complementary
#20478B #8B2E20 #7C8B20
monochromatic
#091428 #152E59 #20478B #2B60BD #4F80D6

Accessibility & contrast

On white

8.99
#20478B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20478B
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20478B#FFFFFF#000000##FFFFFF
##20478B1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224E8E
Deuteranopia (green-blind)
#02458A
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #20478b;
/* rgb */ color: rgb(32, 71, 139);
/* oklch */ color: oklch(40.9% 0.122 260.6);
Tailwind
colors: {
  custom: {
    50: '#6c79ad',
    500: '#20478b',
    950: '#000000',
  },
}
SCSS
$custom: #20478b;
$custom-light: #6c79ad;
$custom-dark: #000000;
JSON
{
  "hex": "#20478b",
  "rgb": {
    "r": 32,
    "g": 71,
    "b": 139
  },
  "hsl": {
    "h": 218.131,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.40947,
    "c": 0.12174,
    "h": 260.6
  },
  "luminance": 0.06678
}

Semantic roles & 50–950 ramp

primary
#20478B
secondary
#BA924D
accent
#AA42E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #20478B

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

Preview Lab → · Contrast checker → · Palette generator →

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