#20277E#20277E

#20277E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.1% C 0.145 H 272.0°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#20277E
RGBrgb(32, 39, 126)
HSLhsl(236, 59%, 31%)
HSVhsv(236, 75%, 49%)
CMYKcmyk(74.6%, 69%, 0%, 50.6%)
CIE-LABlab(21.07, 28.62, -49.96)
CIE-LCHlch(21.07, 57.57, 299.81°)
OKLaboklab(33.12% 0.0051 -0.1444)
OKLCHoklch(33.12% 0.145 272)
XYZxyz(5.0858, 3.2640, 20.0966)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20277E #7E7720
analogous
#20567E #20277E #48207E
triadic
#20277E #7E2027 #277E20
tetradic
#20277E #7E2056 #7E7720 #207E48
square
#20277E #7E2056 #7E7720 #207E48
split-complementary
#20277E #7E4820 #567E20
monochromatic
#07091C #14184D #20277E #2C36AF #4852D0

Accessibility & contrast

On white

12.71
#20277E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#20277E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20277E
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20277E#FFFFFF#000000##FFFFFF
##20277E1.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #20277e;
/* rgb */ color: rgb(32, 39, 126);
/* oklch */ color: oklch(33.1% 0.145 272.0);
Tailwind
colors: {
  custom: {
    50: '#6b61a4',
    500: '#20277e',
    950: '#000000',
  },
}
SCSS
$custom: #20277e;
$custom-light: #6b61a4;
$custom-dark: #000000;
JSON
{
  "hex": "#20277e",
  "rgb": {
    "r": 32,
    "g": 39,
    "b": 126
  },
  "hsl": {
    "h": 235.532,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33124,
    "c": 0.14451,
    "h": 272
  },
  "luminance": 0.03264
}

Semantic roles & 50–950 ramp

primary
#20277E
secondary
#B1A949
accent
#D745E3
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #20277E

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

Preview Lab → · Contrast checker → · Palette generator →

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