#405EAA#405EAA

#405EAA is a mid, vivid blue. Relative luminance 0.120; OKLCH L 49.8% C 0.126 H 265.8°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#405EAA
RGBrgb(64, 94, 170)
HSLhsl(223, 45%, 46%)
HSVhsv(223, 62%, 67%)
CMYKcmyk(62.4%, 44.7%, 0%, 33.3%)
CIE-LABlab(41.21, 13.44, -44.16)
CIE-LCHlch(41.21, 46.16, 286.93°)
OKLaboklab(49.79% -0.0093 -0.126)
OKLCHoklch(49.79% 0.126 265.8)
XYZxyz(13.3703, 11.9965, 39.6334)
Luminance0.1200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405EAA #AA8C40
analogous
#4093AA #405EAA #5740AA
triadic
#405EAA #AA405E #5EAA40
tetradic
#405EAA #AA4093 #AA8C40 #40AA57
square
#405EAA #AA4093 #AA8C40 #40AA57
split-complementary
#405EAA #AA5740 #93AA40
monochromatic
#1F2D51 #2F457E #405EAA #637EC4 #8FA3D5

Accessibility & contrast

On white

6.18
#405EAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#405EAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405EAA
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405EAA#FFFFFF#000000##FFFFFF
##405EAA1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #405eaa;
/* rgb */ color: rgb(64, 94, 170);
/* oklch */ color: oklch(49.8% 0.126 265.8);
Tailwind
colors: {
  custom: {
    50: '#7f8bc4',
    500: '#405eaa',
    950: '#000000',
  },
}
SCSS
$custom: #405eaa;
$custom-light: #7f8bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#405eaa",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 170
  },
  "hsl": {
    "h": 223.019,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.49785,
    "c": 0.12631,
    "h": 265.8
  },
  "luminance": 0.11998
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #405EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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