#20278D#20278D

#20278D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.165 H 271.2°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#20278D
RGBrgb(32, 39, 141)
HSLhsl(236, 63%, 34%)
HSVhsv(236, 77%, 55%)
CMYKcmyk(77.3%, 72.3%, 0%, 44.7%)
CIE-LABlab(22.59, 34.17, -56.88)
CIE-LCHlch(22.59, 66.36, 300.99°)
OKLaboklab(34.68% 0.0033 -0.1646)
OKLCHoklch(34.68% 0.165 271.2)
XYZxyz(6.1273, 3.6805, 25.5816)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20278D #8D8620
analogous
#205E8D #20278D #50208D
triadic
#20278D #8D2027 #278D20
tetradic
#20278D #8D205E #8D8620 #208D50
square
#20278D #8D205E #8D8620 #208D50
split-complementary
#20278D #8D5020 #5E8D20
monochromatic
#090B29 #15195B #20278D #2B35BF #5059D7

Accessibility & contrast

On white

12.10
#20278D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#20278D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20278D
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20278D#FFFFFF#000000##FFFFFF
##20278D1.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#00318B
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #20278d;
/* rgb */ color: rgb(32, 39, 141);
/* oklch */ color: oklch(34.7% 0.165 271.2);
Tailwind
colors: {
  custom: {
    50: '#6f62af',
    500: '#20278d',
    950: '#000000',
  },
}
SCSS
$custom: #20278d;
$custom-light: #6f62af;
$custom-dark: #000000;
JSON
{
  "hex": "#20278d",
  "rgb": {
    "r": 32,
    "g": 39,
    "b": 141
  },
  "hsl": {
    "h": 236.147,
    "s": 63.006,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34678,
    "c": 0.16468,
    "h": 271.2
  },
  "luminance": 0.03681
}

Semantic roles & 50–950 ramp

primary
#20278D
secondary
#BAB44E
accent
#DC42E6
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080511
muted
#7B7980

Preview Lab

Preview with #20278D

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

Preview Lab → · Contrast checker → · Palette generator →

#20278D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva