#20277A#20277A

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

Color values

HEX#20277A
RGBrgb(32, 39, 122)
HSLhsl(235, 58%, 30%)
HSVhsv(235, 74%, 48%)
CMYKcmyk(73.8%, 68%, 0%, 52.2%)
CIE-LABlab(20.68, 27.11, -48.05)
CIE-LCHlch(20.68, 55.17, 299.44°)
OKLaboklab(32.72% 0.0055 -0.1388)
OKLCHoklch(32.72% 0.139 272.2)
XYZxyz(4.8329, 3.1628, 18.7644)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20277A #7A7320
analogous
#20547A #20277A #46207A
triadic
#20277A #7A2027 #277A20
tetradic
#20277A #7A2054 #7A7320 #207A46
square
#20277A #7A2054 #7A7320 #207A46
split-complementary
#20277A #7A4620 #547A20
monochromatic
#070819 #13184A #20277A #2D36AA #4651CE

Accessibility & contrast

On white

12.86
#20277A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#20277A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20277A
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20277A#FFFFFF#000000##FFFFFF
##20277A1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20277a;
/* rgb */ color: rgb(32, 39, 122);
/* oklch */ color: oklch(32.7% 0.139 272.2);
Tailwind
colors: {
  custom: {
    50: '#6a61a1',
    500: '#20277a',
    950: '#000000',
  },
}
SCSS
$custom: #20277a;
$custom-light: #6a61a1;
$custom-dark: #000000;
JSON
{
  "hex": "#20277a",
  "rgb": {
    "r": 32,
    "g": 39,
    "b": 122
  },
  "hsl": {
    "h": 235.333,
    "s": 58.442,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32724,
    "c": 0.13895,
    "h": 272.2
  },
  "luminance": 0.03163
}

Semantic roles & 50–950 ramp

primary
#20277A
secondary
#ADA549
accent
#D646E2
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #20277A

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

Preview Lab → · Contrast checker → · Palette generator →

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