#204080#204080

#204080 is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.5% C 0.115 H 262.4°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#204080
RGBrgb(32, 64, 128)
HSLhsl(220, 60%, 31%)
HSVhsv(220, 75%, 50%)
CMYKcmyk(75%, 50%, 0%, 49.8%)
CIE-LABlab(28.20, 12.09, -39.63)
CIE-LCHlch(28.20, 41.43, 286.97°)
OKLaboklab(38.51% -0.0152 -0.1137)
OKLCHoklch(38.51% 0.115 262.4)
XYZxyz(6.3240, 5.5317, 21.1523)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#204080 #806020
analogous
#207080 #204080 #302080
triadic
#204080 #802040 #408020
tetradic
#204080 #802070 #806020 #208030
square
#204080 #802070 #806020 #208030
split-complementary
#204080 #803020 #708020
monochromatic
#080F1E #14284F #204080 #2C58B1 #4976D1

Accessibility & contrast

On white

9.97
#204080 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#204080 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #204080
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##204080#FFFFFF#000000##FFFFFF
##2040801.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4782
Deuteranopia (green-blind)
#013E7F
Tritanopia (blue-blind)
#004F5A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #204080;
/* rgb */ color: rgb(32, 64, 128);
/* oklch */ color: oklch(38.5% 0.115 262.4);
Tailwind
colors: {
  custom: {
    50: '#6974a5',
    500: '#204080',
    950: '#000000',
  },
}
SCSS
$custom: #204080;
$custom-light: #6974a5;
$custom-dark: #000000;
JSON
{
  "hex": "#204080",
  "rgb": {
    "r": 32,
    "g": 64,
    "b": 128
  },
  "hsl": {
    "h": 220,
    "s": 60,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38509,
    "c": 0.11475,
    "h": 262.4
  },
  "luminance": 0.05532
}

Semantic roles & 50–950 ramp

primary
#204080
secondary
#B39049
accent
#AE45E3
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #204080

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

Preview Lab → · Contrast checker → · Palette generator →

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