#405F8A#405F8A

#405F8A is a mid, moderate cyan. Relative luminance 0.111; OKLCH L 48.1% C 0.079 H 256.7°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#405F8A
RGBrgb(64, 95, 138)
HSLhsl(215, 37%, 40%)
HSVhsv(215, 54%, 54%)
CMYKcmyk(53.6%, 31.2%, 0%, 45.9%)
CIE-LABlab(39.76, 1.76, -27.32)
CIE-LCHlch(39.76, 27.38, 273.69°)
OKLaboklab(48.1% -0.0181 -0.0768)
OKLCHoklch(48.1% 0.079 256.7)
XYZxyz(10.7924, 11.1086, 25.6153)
Luminance0.1111 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405F8A #8A6B40
analogous
#40848A #405F8A #46408A
triadic
#405F8A #8A405F #5F8A40
tetradic
#405F8A #8A4084 #8A6B40 #408A46
square
#405F8A #8A4084 #8A6B40 #408A46
split-complementary
#405F8A #8A4640 #848A40
monochromatic
#192536 #2D4260 #405F8A #567CB1 #809DC4

Accessibility & contrast

On white

6.52
#405F8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#405F8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405F8A
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405F8A#FFFFFF#000000##FFFFFF
##405F8A1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E628C
Deuteranopia (green-blind)
#455A89
Tritanopia (blue-blind)
#1A696E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #405f8a;
/* rgb */ color: rgb(64, 95, 138);
/* oklch */ color: oklch(48.1% 0.079 256.7);
Tailwind
colors: {
  custom: {
    50: '#7a8cac',
    500: '#405f8a',
    950: '#000000',
  },
}
SCSS
$custom: #405f8a;
$custom-light: #7a8cac;
$custom-dark: #000000;
JSON
{
  "hex": "#405f8a",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 138
  },
  "hsl": {
    "h": 214.865,
    "s": 36.634,
    "l": 39.608
  },
  "oklch": {
    "l": 0.48096,
    "c": 0.07888,
    "h": 256.7
  },
  "luminance": 0.11109
}

Semantic roles & 50–950 ramp

primary
#405F8A
secondary
#AF9777
accent
#9D5BCD
background
#F7F8FA
surface
#EEF0F4
border
#C9CBCE
text
#090C10
muted
#7B7D7F

Preview Lab

Preview with #405F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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