#204798#204798

#204798 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.0% C 0.140 H 262.6°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#204798
RGBrgb(32, 71, 152)
HSLhsl(221, 65%, 36%)
HSVhsv(221, 79%, 60%)
CMYKcmyk(78.9%, 53.3%, 0%, 40.4%)
CIE-LABlab(31.99, 16.88, -48.29)
CIE-LCHlch(31.99, 51.16, 289.27°)
OKLaboklab(41.95% -0.018 -0.1391)
OKLCHoklch(41.95% 0.14 262.6)
XYZxyz(8.5144, 7.0796, 30.6174)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#204798 #987120
analogous
#208398 #204798 #352098
triadic
#204798 #982047 #479820
tetradic
#204798 #982083 #987120 #209835
square
#204798 #982083 #987120 #209835
split-complementary
#204798 #983520 #839820
monochromatic
#0B1833 #152F65 #204798 #2B5FCB #5782DC

Accessibility & contrast

On white

8.69
#204798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#204798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #204798
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##204798#FFFFFF#000000##FFFFFF
##2047981.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D519B
Deuteranopia (green-blind)
#004696
Tritanopia (blue-blind)
#005B68
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #204798;
/* rgb */ color: rgb(32, 71, 152);
/* oklch */ color: oklch(42.0% 0.140 262.6);
Tailwind
colors: {
  custom: {
    50: '#6f79b7',
    500: '#204798',
    950: '#000000',
  },
}
SCSS
$custom: #204798;
$custom-light: #6f79b7;
$custom-dark: #000000;
JSON
{
  "hex": "#204798",
  "rgb": {
    "r": 32,
    "g": 71,
    "b": 152
  },
  "hsl": {
    "h": 220.5,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.41952,
    "c": 0.14026,
    "h": 262.6
  },
  "luminance": 0.07081
}

Semantic roles & 50–950 ramp

primary
#204798
secondary
#BF9D54
accent
#B140E8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #204798

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

Preview Lab → · Contrast checker → · Palette generator →

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