#405C8E#405C8E

#405C8E is a mid, moderate blue. Relative luminance 0.107; OKLCH L 47.6% C 0.088 H 261.4°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#405C8E
RGBrgb(64, 92, 142)
HSLhsl(218, 38%, 40%)
HSVhsv(218, 55%, 56%)
CMYKcmyk(54.9%, 35.2%, 0%, 44.3%)
CIE-LABlab(39.06, 5.00, -30.84)
CIE-LCHlch(39.06, 31.24, 279.20°)
OKLaboklab(47.62% -0.0132 -0.087)
OKLCHoklch(47.62% 0.088 261.4)
XYZxyz(10.8223, 10.6965, 27.0803)
Luminance0.1070 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405C8E #8E7240
analogous
#40838E #405C8E #4B408E
triadic
#405C8E #8E405C #5C8E40
tetradic
#405C8E #8E4083 #8E7240 #408E4B
square
#405C8E #8E4083 #8E7240 #408E4B
split-complementary
#405C8E #8E4B40 #838E40
monochromatic
#1A253A #2D4164 #405C8E #5879B4 #829BC7

Accessibility & contrast

On white

6.69
#405C8E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#405C8E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405C8E
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405C8E#FFFFFF#000000##FFFFFF
##405C8E1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#486090
Deuteranopia (green-blind)
#3F598D
Tritanopia (blue-blind)
#16676E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #405c8e;
/* rgb */ color: rgb(64, 92, 142);
/* oklch */ color: oklch(47.6% 0.088 261.4);
Tailwind
colors: {
  custom: {
    50: '#7a89af',
    500: '#405c8e',
    950: '#000000',
  },
}
SCSS
$custom: #405c8e;
$custom-light: #7a89af;
$custom-dark: #000000;
JSON
{
  "hex": "#405c8e",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 142
  },
  "hsl": {
    "h": 218.462,
    "s": 37.864,
    "l": 40.392
  },
  "oklch": {
    "l": 0.47618,
    "c": 0.08799,
    "h": 261.4
  },
  "luminance": 0.10697
}

Semantic roles & 50–950 ramp

primary
#405C8E
secondary
#B19D79
accent
#A45ACE
background
#F7F8FA
surface
#EEF0F4
border
#C9CBCE
text
#0A0B10
muted
#7C7C7F

Preview Lab

Preview with #405C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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