#20277F#20277F

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

Color values

HEX#20277F
RGBrgb(32, 39, 127)
HSLhsl(236, 60%, 31%)
HSVhsv(236, 75%, 50%)
CMYKcmyk(74.8%, 69.3%, 0%, 50.2%)
CIE-LABlab(21.17, 29.00, -50.43)
CIE-LCHlch(21.17, 58.17, 299.90°)
OKLaboklab(33.23% 0.005 -0.1458)
OKLCHoklch(33.23% 0.146 272)
XYZxyz(5.1507, 3.2899, 20.4381)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20277F #7F7820
analogous
#20567F #20277F #48207F
triadic
#20277F #7F2027 #277F20
tetradic
#20277F #7F2056 #7F7820 #207F48
square
#20277F #7F2056 #7F7820 #207F48
split-complementary
#20277F #7F4820 #567F20
monochromatic
#07091D #14184E #20277F #2C36B0 #4852D1

Accessibility & contrast

On white

12.67
#20277F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#20277F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20277F
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20277F#FFFFFF#000000##FFFFFF
##20277F1.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #20277f;
/* rgb */ color: rgb(32, 39, 127);
/* oklch */ color: oklch(33.2% 0.146 272.0);
Tailwind
colors: {
  custom: {
    50: '#6b61a5',
    500: '#20277f',
    950: '#000000',
  },
}
SCSS
$custom: #20277f;
$custom-light: #6b61a5;
$custom-dark: #000000;
JSON
{
  "hex": "#20277f",
  "rgb": {
    "r": 32,
    "g": 39,
    "b": 127
  },
  "hsl": {
    "h": 235.579,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33225,
    "c": 0.14589,
    "h": 272
  },
  "luminance": 0.0329
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20277F

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

Preview Lab → · Contrast checker → · Palette generator →

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