#405E9D#405E9D

#405E9D is a mid, moderate blue. Relative luminance 0.115; OKLCH L 49.0% C 0.108 H 263.7°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#405E9D
RGBrgb(64, 94, 157)
HSLhsl(221, 42%, 43%)
HSVhsv(221, 59%, 62%)
CMYKcmyk(59.2%, 40.1%, 0%, 38.4%)
CIE-LABlab(40.46, 8.87, -37.64)
CIE-LCHlch(40.46, 38.68, 283.27°)
OKLaboklab(48.96% -0.0118 -0.1069)
OKLCHoklch(48.96% 0.108 263.7)
XYZxyz(12.2008, 11.5287, 33.4741)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405E9D #9D7F40
analogous
#408C9D #405E9D #50409D
triadic
#405E9D #9D405E #5E9D40
tetradic
#405E9D #9D408C #9D7F40 #409D50
square
#405E9D #9D408C #9D7F40 #409D50
split-complementary
#405E9D #9D5040 #8C9D40
monochromatic
#1D2A46 #2E4472 #405E9D #5D7CBD #899FCF

Accessibility & contrast

On white

6.35
#405E9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#405E9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405E9D
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405E9D#FFFFFF#000000##FFFFFF
##405E9D1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#43649F
Deuteranopia (green-blind)
#375B9C
Tritanopia (blue-blind)
#006C76
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #405e9d;
/* rgb */ color: rgb(64, 94, 157);
/* oklch */ color: oklch(49.0% 0.108 263.7);
Tailwind
colors: {
  custom: {
    50: '#7d8bba',
    500: '#405e9d',
    950: '#000000',
  },
}
SCSS
$custom: #405e9d;
$custom-light: #7d8bba;
$custom-dark: #000000;
JSON
{
  "hex": "#405e9d",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 157
  },
  "hsl": {
    "h": 220.645,
    "s": 42.081,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4896,
    "c": 0.10752,
    "h": 263.7
  },
  "luminance": 0.1153
}

Semantic roles & 50–950 ramp

primary
#405E9D
secondary
#B9A77F
accent
#AA56D2
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#0A0B11
muted
#7C7C80

Preview Lab

Preview with #405E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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