#20509C#20509C

#20509C is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.3% C 0.135 H 259.4°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#20509C
RGBrgb(32, 80, 156)
HSLhsl(217, 66%, 37%)
HSVhsv(217, 79%, 61%)
CMYKcmyk(79.5%, 48.7%, 0%, 38.8%)
CIE-LABlab(34.89, 12.38, -46.02)
CIE-LCHlch(34.89, 47.66, 285.06°)
OKLaboklab(44.26% -0.0247 -0.1322)
OKLCHoklch(44.26% 0.135 259.4)
XYZxyz(9.4629, 8.4436, 32.5771)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20509C #9C6C20
analogous
#208E9C #20509C #2E209C
triadic
#20509C #9C2050 #509C20
tetradic
#20509C #9C208E #9C6C20 #209C2E
square
#20509C #9C208E #9C6C20 #209C2E
split-complementary
#20509C #9C2E20 #8E9C20
monochromatic
#0B1C36 #163669 #20509C #2A6ACF #598CDD

Accessibility & contrast

On white

7.81
#20509C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#20509C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20509C
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20509C#FFFFFF#000000##FFFFFF
##20509C1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25589F
Deuteranopia (green-blind)
#004D9A
Tritanopia (blue-blind)
#00626E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #20509c;
/* rgb */ color: rgb(32, 80, 156);
/* oklch */ color: oklch(44.3% 0.135 259.4);
Tailwind
colors: {
  custom: {
    50: '#6f80ba',
    500: '#20509c',
    950: '#000000',
  },
}
SCSS
$custom: #20509c;
$custom-light: #6f80ba;
$custom-dark: #000000;
JSON
{
  "hex": "#20509c",
  "rgb": {
    "r": 32,
    "g": 80,
    "b": 156
  },
  "hsl": {
    "h": 216.774,
    "s": 65.957,
    "l": 36.863
  },
  "oklch": {
    "l": 0.44262,
    "c": 0.13453,
    "h": 259.4
  },
  "luminance": 0.08445
}

Semantic roles & 50–950 ramp

primary
#20509C
secondary
#C19857
accent
#A73FE9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #20509C

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

Preview Lab → · Contrast checker → · Palette generator →

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