#20378E#20378E

#20378E is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.7% C 0.147 H 267.4°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#20378E
RGBrgb(32, 55, 142)
HSLhsl(227, 63%, 34%)
HSVhsv(227, 77%, 56%)
CMYKcmyk(77.5%, 61.3%, 0%, 44.3%)
CIE-LABlab(26.71, 23.90, -50.74)
CIE-LCHlch(26.71, 56.09, 295.22°)
OKLaboklab(37.73% -0.0067 -0.1466)
OKLCHoklch(37.73% 0.147 267.4)
XYZxyz(6.8426, 4.9917, 26.1888)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20378E #8E7720
analogous
#206E8E #20378E #40208E
triadic
#20378E #8E2037 #378E20
tetradic
#20378E #8E206E #8E7720 #208E40
square
#20378E #8E206E #8E7720 #208E40
split-complementary
#20378E #8E4020 #6E8E20
monochromatic
#09102A #15245C #20378E #2B4AC0 #516DD8

Accessibility & contrast

On white

10.51
#20378E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#20378E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20378E
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20378E#FFFFFF#000000##FFFFFF
##20378E1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#004D5D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #20378e;
/* rgb */ color: rgb(32, 55, 142);
/* oklch */ color: oklch(37.7% 0.147 267.4);
Tailwind
colors: {
  custom: {
    50: '#6d6db0',
    500: '#20378e',
    950: '#000000',
  },
}
SCSS
$custom: #20378e;
$custom-light: #6d6db0;
$custom-dark: #000000;
JSON
{
  "hex": "#20378e",
  "rgb": {
    "r": 32,
    "g": 55,
    "b": 142
  },
  "hsl": {
    "h": 227.455,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37729,
    "c": 0.14671,
    "h": 267.4
  },
  "luminance": 0.04992
}

Semantic roles & 50–950 ramp

primary
#20378E
secondary
#BBA44F
accent
#C442E6
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080711
muted
#7B7A80

Preview Lab

Preview with #20378E

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

Preview Lab → · Contrast checker → · Palette generator →

#20378E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva