#405EA6#405EA6

#405EA6 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.5% C 0.121 H 265.2°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#405EA6
RGBrgb(64, 94, 166)
HSLhsl(222, 44%, 45%)
HSVhsv(222, 61%, 65%)
CMYKcmyk(61.4%, 43.4%, 0%, 34.9%)
CIE-LABlab(40.97, 12.03, -42.17)
CIE-LCHlch(40.97, 43.86, 285.92°)
OKLaboklab(49.53% -0.01 -0.1201)
OKLCHoklch(49.53% 0.121 265.2)
XYZxyz(12.9976, 11.8475, 37.6708)
Luminance0.1185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405EA6 #A68840
analogous
#4091A6 #405EA6 #5540A6
triadic
#405EA6 #A6405E #5EA640
tetradic
#405EA6 #A64091 #A68840 #40A655
square
#405EA6 #A64091 #A68840 #40A655
split-complementary
#405EA6 #A65540 #91A640
monochromatic
#1E2C4E #2F457A #405EA6 #617EC2 #8DA2D3

Accessibility & contrast

On white

6.23
#405EA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#405EA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405EA6
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405EA6#FFFFFF#000000##FFFFFF
##405EA61.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E66A9
Deuteranopia (green-blind)
#2F5CA4
Tritanopia (blue-blind)
#006E7A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #405ea6;
/* rgb */ color: rgb(64, 94, 166);
/* oklch */ color: oklch(49.5% 0.121 265.2);
Tailwind
colors: {
  custom: {
    50: '#7e8bc1',
    500: '#405ea6',
    950: '#000000',
  },
}
SCSS
$custom: #405ea6;
$custom-light: #7e8bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#405ea6",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 166
  },
  "hsl": {
    "h": 222.353,
    "s": 44.348,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49526,
    "c": 0.12055,
    "h": 265.2
  },
  "luminance": 0.11849
}

Semantic roles & 50–950 ramp

primary
#405EA6
secondary
#BEAD84
accent
#AE54D4
background
#F8F8FB
surface
#EFF0F7
border
#CACBD0
text
#0B0B12
muted
#7C7C81

Preview Lab

Preview with #405EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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