#405F87#405F87

#405F87 is a mid, moderate cyan. Relative luminance 0.110; OKLCH L 47.9% C 0.075 H 255.2°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#405F87
RGBrgb(64, 95, 135)
HSLhsl(214, 36%, 39%)
HSVhsv(214, 53%, 53%)
CMYKcmyk(52.6%, 29.6%, 0%, 47.1%)
CIE-LABlab(39.62, 0.77, -25.73)
CIE-LCHlch(39.62, 25.74, 271.71°)
OKLaboklab(47.94% -0.019 -0.0722)
OKLCHoklch(47.94% 0.075 255.2)
XYZxyz(10.5782, 11.0229, 24.4872)
Luminance0.1102 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405F87 #876840
analogous
#408387 #405F87 #454087
triadic
#405F87 #87405F #5F8740
tetradic
#405F87 #874083 #876840 #408745
square
#405F87 #874083 #876840 #408745
split-complementary
#405F87 #874540 #838740
monochromatic
#192534 #2C425D #405F87 #567CAF #7F9CC2

Accessibility & contrast

On white

6.55
#405F87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#405F87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405F87
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405F87#FFFFFF#000000##FFFFFF
##405F871.006.553.206.55
#FFFFFF6.551.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F6189
Deuteranopia (green-blind)
#465A86
Tritanopia (blue-blind)
#1D686D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #405f87;
/* rgb */ color: rgb(64, 95, 135);
/* oklch */ color: oklch(47.9% 0.075 255.2);
Tailwind
colors: {
  custom: {
    50: '#798caa',
    500: '#405f87',
    950: '#000000',
  },
}
SCSS
$custom: #405f87;
$custom-light: #798caa;
$custom-dark: #000000;
JSON
{
  "hex": "#405f87",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 135
  },
  "hsl": {
    "h": 213.803,
    "s": 35.678,
    "l": 39.02
  },
  "oklch": {
    "l": 0.47937,
    "c": 0.07464,
    "h": 255.2
  },
  "luminance": 0.11024
}

Semantic roles & 50–950 ramp

primary
#405F87
secondary
#AD9576
accent
#9B5CCC
background
#F7F8FA
surface
#EEF0F4
border
#C9CBCE
text
#090C10
muted
#7B7D7F

Preview Lab

Preview with #405F87

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

Preview Lab → · Contrast checker → · Palette generator →

#405F87 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva