#405EA9#405EA9

#405EA9 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 49.7% C 0.125 H 265.7°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#405EA9
RGBrgb(64, 94, 169)
HSLhsl(223, 45%, 46%)
HSVhsv(223, 62%, 66%)
CMYKcmyk(62.1%, 44.4%, 0%, 33.7%)
CIE-LABlab(41.15, 13.09, -43.67)
CIE-LCHlch(41.15, 45.59, 286.68°)
OKLaboklab(49.72% -0.0094 -0.1245)
OKLCHoklch(49.72% 0.125 265.7)
XYZxyz(13.2760, 11.9588, 39.1371)
Luminance0.1196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405EA9 #A98B40
analogous
#4092A9 #405EA9 #5640A9
triadic
#405EA9 #A9405E #5EA940
tetradic
#405EA9 #A94092 #A98B40 #40A956
square
#405EA9 #A94092 #A98B40 #40A956
split-complementary
#405EA9 #A95640 #92A940
monochromatic
#1E2D50 #2F457D #405EA9 #627EC4 #8FA3D5

Accessibility & contrast

On white

6.19
#405EA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#405EA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405EA9
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405EA9#FFFFFF#000000##FFFFFF
##405EA91.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B66AC
Deuteranopia (green-blind)
#2C5DA7
Tritanopia (blue-blind)
#006F7B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #405ea9;
/* rgb */ color: rgb(64, 94, 169);
/* oklch */ color: oklch(49.7% 0.125 265.7);
Tailwind
colors: {
  custom: {
    50: '#7f8bc3',
    500: '#405ea9',
    950: '#000000',
  },
}
SCSS
$custom: #405ea9;
$custom-light: #7f8bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#405ea9",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 169
  },
  "hsl": {
    "h": 222.857,
    "s": 45.064,
    "l": 45.686
  },
  "oklch": {
    "l": 0.4972,
    "c": 0.12488,
    "h": 265.7
  },
  "luminance": 0.1196
}

Semantic roles & 50–950 ramp

primary
#405EA9
secondary
#C0AF85
accent
#B053D5
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0B12
muted
#7C7C81

Preview Lab

Preview with #405EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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