#204787#204787

#204787 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.7% C 0.116 H 259.8°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#204787
RGBrgb(32, 71, 135)
HSLhsl(217, 62%, 33%)
HSVhsv(217, 76%, 53%)
CMYKcmyk(76.3%, 47.4%, 0%, 47.1%)
CIE-LABlab(30.79, 10.09, -39.81)
CIE-LCHlch(30.79, 41.07, 284.22°)
OKLaboklab(40.65% -0.0205 -0.1141)
OKLCHoklch(40.65% 0.116 259.8)
XYZxyz(7.2205, 6.5620, 23.8030)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#204787 #876020
analogous
#207A87 #204787 #2D2087
triadic
#204787 #872047 #478720
tetradic
#204787 #87207A #876020 #20872D
square
#204787 #87207A #876020 #20872D
split-complementary
#204787 #872D20 #7A8720
monochromatic
#091324 #142D56 #204787 #2C61B8 #4D80D5

Accessibility & contrast

On white

9.08
#204787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#204787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #204787
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##204787#FFFFFF#000000##FFFFFF
##2047871.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254E89
Deuteranopia (green-blind)
#0E4486
Tritanopia (blue-blind)
#005660
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #204787;
/* rgb */ color: rgb(32, 71, 135);
/* oklch */ color: oklch(40.7% 0.116 259.8);
Tailwind
colors: {
  custom: {
    50: '#6b79aa',
    500: '#204787',
    950: '#000000',
  },
}
SCSS
$custom: #204787;
$custom-light: #6b79aa;
$custom-dark: #000000;
JSON
{
  "hex": "#204787",
  "rgb": {
    "r": 32,
    "g": 71,
    "b": 135
  },
  "hsl": {
    "h": 217.282,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.40651,
    "c": 0.11597,
    "h": 259.8
  },
  "luminance": 0.06563
}

Semantic roles & 50–950 ramp

primary
#204787
secondary
#B88F4B
accent
#A843E5
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070910
muted
#7A7B7F

Preview Lab

Preview with #204787

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

Preview Lab → · Contrast checker → · Palette generator →

#204787 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva