#20278E#20278E

#20278E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.8% C 0.166 H 271.1°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#20278E
RGBrgb(32, 39, 142)
HSLhsl(236, 63%, 34%)
HSVhsv(236, 77%, 56%)
CMYKcmyk(77.5%, 72.5%, 0%, 44.3%)
CIE-LABlab(22.69, 34.53, -57.33)
CIE-LCHlch(22.69, 66.93, 301.06°)
OKLaboklab(34.78% 0.0032 -0.166)
OKLCHoklch(34.78% 0.166 271.1)
XYZxyz(6.2020, 3.7104, 25.9753)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20278E #8E8720
analogous
#205E8E #20278E #50208E
triadic
#20278E #8E2027 #278E20
tetradic
#20278E #8E205E #8E8720 #208E50
square
#20278E #8E205E #8E8720 #208E50
split-complementary
#20278E #8E5020 #5E8E20
monochromatic
#090C2A #15195C #20278E #2B35C0 #5159D8

Accessibility & contrast

On white

12.05
#20278E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20278E
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20278E#FFFFFF#000000##FFFFFF
##20278E1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20278e;
/* rgb */ color: rgb(32, 39, 142);
/* oklch */ color: oklch(34.8% 0.166 271.1);
Tailwind
colors: {
  custom: {
    50: '#6f62b0',
    500: '#20278e',
    950: '#000000',
  },
}
SCSS
$custom: #20278e;
$custom-light: #6f62b0;
$custom-dark: #000000;
JSON
{
  "hex": "#20278e",
  "rgb": {
    "r": 32,
    "g": 39,
    "b": 142
  },
  "hsl": {
    "h": 236.182,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34784,
    "c": 0.16599,
    "h": 271.1
  },
  "luminance": 0.03711
}

Semantic roles & 50–950 ramp

primary
#20278E
secondary
#BBB44F
accent
#DC42E6
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #20278E

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

Preview Lab → · Contrast checker → · Palette generator →

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