#20277B#20277B

#20277B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.8% C 0.140 H 272.2°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#20277B
RGBrgb(32, 39, 123)
HSLhsl(235, 59%, 30%)
HSVhsv(235, 74%, 48%)
CMYKcmyk(74%, 68.3%, 0%, 51.8%)
CIE-LABlab(20.78, 27.49, -48.53)
CIE-LCHlch(20.78, 55.77, 299.53°)
OKLaboklab(32.82% 0.0054 -0.1402)
OKLCHoklch(32.82% 0.14 272.2)
XYZxyz(4.8951, 3.1877, 19.0924)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20277B #7B7420
analogous
#20547B #20277B #47207B
triadic
#20277B #7B2027 #277B20
tetradic
#20277B #7B2054 #7B7420 #207B47
square
#20277B #7B2054 #7B7420 #207B47
split-complementary
#20277B #7B4720 #547B20
monochromatic
#07081A #13184A #20277B #2D36AC #4651CF

Accessibility & contrast

On white

12.82
#20277B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#20277B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20277B
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20277B#FFFFFF#000000##FFFFFF
##20277B1.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #20277b;
/* rgb */ color: rgb(32, 39, 123);
/* oklch */ color: oklch(32.8% 0.140 272.2);
Tailwind
colors: {
  custom: {
    50: '#6a61a2',
    500: '#20277b',
    950: '#000000',
  },
}
SCSS
$custom: #20277b;
$custom-light: #6a61a2;
$custom-dark: #000000;
JSON
{
  "hex": "#20277b",
  "rgb": {
    "r": 32,
    "g": 39,
    "b": 123
  },
  "hsl": {
    "h": 235.385,
    "s": 58.71,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32823,
    "c": 0.14034,
    "h": 272.2
  },
  "luminance": 0.03188
}

Semantic roles & 50–950 ramp

primary
#20277B
secondary
#AEA649
accent
#D646E2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #20277B

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

Preview Lab → · Contrast checker → · Palette generator →

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