#204170#204170

#204170 is a dark, moderate blue. Relative luminance 0.053; OKLCH L 37.6% C 0.090 H 257.5°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#204170
RGBrgb(32, 65, 112)
HSLhsl(215, 56%, 28%)
HSVhsv(215, 71%, 44%)
CMYKcmyk(71.4%, 42%, 0%, 56.1%)
CIE-LABlab(27.45, 5.02, -30.74)
CIE-LCHlch(27.45, 31.15, 279.28°)
OKLaboklab(37.6% -0.0194 -0.0876)
OKLCHoklch(37.6% 0.09 257.5)
XYZxyz(5.4095, 5.2570, 16.0557)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#204170 #704F20
analogous
#206970 #204170 #272070
triadic
#204170 #702041 #417020
tetradic
#204170 #702069 #704F20 #207027
square
#204170 #702069 #704F20 #207027
split-complementary
#204170 #702720 #697020
monochromatic
#070E18 #122540 #204170 #2E5DA0 #4279C9

Accessibility & contrast

On white

10.24
#204170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#204170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #204170
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##204170#FFFFFF#000000##FFFFFF
##2041701.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4572
Deuteranopia (green-blind)
#1F3D6F
Tritanopia (blue-blind)
#004C53
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #204170;
/* rgb */ color: rgb(32, 65, 112);
/* oklch */ color: oklch(37.6% 0.090 257.5);
Tailwind
colors: {
  custom: {
    50: '#667599',
    500: '#204170',
    950: '#000000',
  },
}
SCSS
$custom: #204170;
$custom-light: #667599;
$custom-dark: #000000;
JSON
{
  "hex": "#204170",
  "rgb": {
    "r": 32,
    "g": 65,
    "b": 112
  },
  "hsl": {
    "h": 215.25,
    "s": 55.556,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37595,
    "c": 0.08972,
    "h": 257.5
  },
  "luminance": 0.05258
}

Semantic roles & 50–950 ramp

primary
#204170
secondary
#A47E48
accent
#A149DF
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#06080E
muted
#7A7B7E

Preview Lab

Preview with #204170

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

Preview Lab → · Contrast checker → · Palette generator →

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