#20277D#20277D

#20277D is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.143 H 272.1°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#20277D
RGBrgb(32, 39, 125)
HSLhsl(235, 59%, 31%)
HSVhsv(235, 74%, 49%)
CMYKcmyk(74.4%, 68.8%, 0%, 51%)
CIE-LABlab(20.97, 28.25, -49.48)
CIE-LCHlch(20.97, 56.98, 299.72°)
OKLaboklab(33.02% 0.0052 -0.143)
OKLCHoklch(33.02% 0.143 272.1)
XYZxyz(5.0216, 3.2383, 19.7585)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20277D #7D7620
analogous
#20557D #20277D #47207D
triadic
#20277D #7D2027 #277D20
tetradic
#20277D #7D2055 #7D7620 #207D47
square
#20277D #7D2055 #7D7620 #207D47
split-complementary
#20277D #7D4720 #557D20
monochromatic
#07091C #14184C #20277D #2C36AE #4752D0

Accessibility & contrast

On white

12.74
#20277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20277D
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20277D#FFFFFF#000000##FFFFFF
##20277D1.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #20277d;
/* rgb */ color: rgb(32, 39, 125);
/* oklch */ color: oklch(33.0% 0.143 272.1);
Tailwind
colors: {
  custom: {
    50: '#6a61a4',
    500: '#20277d',
    950: '#000000',
  },
}
SCSS
$custom: #20277d;
$custom-light: #6a61a4;
$custom-dark: #000000;
JSON
{
  "hex": "#20277d",
  "rgb": {
    "r": 32,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 235.484,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33023,
    "c": 0.14312,
    "h": 272.1
  },
  "luminance": 0.03239
}

Semantic roles & 50–950 ramp

primary
#20277D
secondary
#B0A849
accent
#D745E2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #20277D

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

Preview Lab → · Contrast checker → · Palette generator →

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