#406D8A#406D8A

#406D8A is a mid, moderate cyan. Relative luminance 0.139; OKLCH L 51.5% C 0.068 H 238.3°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#406D8A
RGBrgb(64, 109, 138)
HSLhsl(204, 37%, 40%)
HSVhsv(204, 54%, 54%)
CMYKcmyk(53.6%, 21%, 0%, 45.9%)
CIE-LABlab(44.03, -6.76, -20.69)
CIE-LCHlch(44.03, 21.77, 251.91°)
OKLaboklab(51.46% -0.0356 -0.0577)
OKLCHoklch(51.46% 0.068 238.3)
XYZxyz(12.1688, 13.8613, 26.0741)
Luminance0.1386 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406D8A #8A5D40
analogous
#408A82 #406D8A #40488A
triadic
#406D8A #8A406D #6D8A40
tetradic
#406D8A #82408A #8A5D40 #488A40
square
#406D8A #82408A #8A5D40 #488A40
split-complementary
#406D8A #8A4048 #8A8240
monochromatic
#192B36 #2D4C60 #406D8A #568DB1 #80AAC4

Accessibility & contrast

On white

5.57
#406D8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#406D8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406D8A
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406D8A#FFFFFF#000000##FFFFFF
##406D8A1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#606C8B
Deuteranopia (green-blind)
#56658A
Tritanopia (blue-blind)
#147477
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #406d8a;
/* rgb */ color: rgb(64, 109, 138);
/* oklch */ color: oklch(51.5% 0.068 238.3);
Tailwind
colors: {
  custom: {
    50: '#7a96ac',
    500: '#406d8a',
    950: '#000000',
  },
}
SCSS
$custom: #406d8a;
$custom-light: #7a96ac;
$custom-dark: #000000;
JSON
{
  "hex": "#406d8a",
  "rgb": {
    "r": 64,
    "g": 109,
    "b": 138
  },
  "hsl": {
    "h": 203.514,
    "s": 36.634,
    "l": 39.608
  },
  "oklch": {
    "l": 0.51458,
    "c": 0.06778,
    "h": 238.3
  },
  "luminance": 0.13862
}

Semantic roles & 50–950 ramp

primary
#406D8A
secondary
#AF8D77
accent
#885BCD
background
#F7F9FA
surface
#EEF2F4
border
#C9CCCE
text
#0A0D10
muted
#7C7E7F

Preview Lab

Preview with #406D8A

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

Preview Lab → · Contrast checker → · Palette generator →

#406D8A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva