#20509E#20509E

#20509E is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.4% C 0.137 H 259.8°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#20509E
RGBrgb(32, 80, 158)
HSLhsl(217, 66%, 37%)
HSVhsv(217, 80%, 62%)
CMYKcmyk(79.7%, 49.4%, 0%, 38%)
CIE-LABlab(35.03, 13.18, -47.01)
CIE-LCHlch(35.03, 48.82, 285.66°)
OKLaboklab(44.41% -0.0244 -0.1351)
OKLCHoklch(44.41% 0.137 259.8)
XYZxyz(9.6336, 8.5119, 33.4763)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20509E #9E6E20
analogous
#208F9E #20509E #2F209E
triadic
#20509E #9E2050 #509E20
tetradic
#20509E #9E208F #9E6E20 #209E2F
square
#20509E #9E208F #9E6E20 #209E2F
split-complementary
#20509E #9E2F20 #8F9E20
monochromatic
#0B1C38 #16366B #20509E #2A6AD1 #5B8DDE

Accessibility & contrast

On white

7.77
#20509E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#20509E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20509E
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20509E#FFFFFF#000000##FFFFFF
##20509E1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2358A1
Deuteranopia (green-blind)
#004D9C
Tritanopia (blue-blind)
#00636F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #20509e;
/* rgb */ color: rgb(32, 80, 158);
/* oklch */ color: oklch(44.4% 0.137 259.8);
Tailwind
colors: {
  custom: {
    50: '#7080bb',
    500: '#20509e',
    950: '#000000',
  },
}
SCSS
$custom: #20509e;
$custom-light: #7080bb;
$custom-dark: #000000;
JSON
{
  "hex": "#20509e",
  "rgb": {
    "r": 32,
    "g": 80,
    "b": 158
  },
  "hsl": {
    "h": 217.143,
    "s": 66.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.4441,
    "c": 0.13732,
    "h": 259.8
  },
  "luminance": 0.08513
}

Semantic roles & 50–950 ramp

primary
#20509E
secondary
#C29A58
accent
#A83FE9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #20509E

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

Preview Lab → · Contrast checker → · Palette generator →

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