#405EA8#405EA8

#405EA8 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.7% C 0.123 H 265.5°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#405EA8
RGBrgb(64, 94, 168)
HSLhsl(223, 45%, 45%)
HSVhsv(223, 62%, 66%)
CMYKcmyk(61.9%, 44%, 0%, 34.1%)
CIE-LABlab(41.09, 12.73, -43.17)
CIE-LCHlch(41.09, 45.01, 286.43°)
OKLaboklab(49.66% -0.0096 -0.1231)
OKLCHoklch(49.66% 0.123 265.5)
XYZxyz(13.1825, 11.9214, 38.6446)
Luminance0.1192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405EA8 #A88A40
analogous
#4092A8 #405EA8 #5640A8
triadic
#405EA8 #A8405E #5EA840
tetradic
#405EA8 #A84092 #A88A40 #40A856
square
#405EA8 #A84092 #A88A40 #40A856
split-complementary
#405EA8 #A85640 #92A840
monochromatic
#1E2C4F #2F457C #405EA8 #627EC3 #8EA2D4

Accessibility & contrast

On white

6.20
#405EA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#405EA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405EA8
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405EA8#FFFFFF#000000##FFFFFF
##405EA81.006.203.386.20
#FFFFFF6.201.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #405ea8;
/* rgb */ color: rgb(64, 94, 168);
/* oklch */ color: oklch(49.7% 0.123 265.5);
Tailwind
colors: {
  custom: {
    50: '#7e8bc2',
    500: '#405ea8',
    950: '#000000',
  },
}
SCSS
$custom: #405ea8;
$custom-light: #7e8bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#405ea8",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 168
  },
  "hsl": {
    "h": 222.692,
    "s": 44.828,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49655,
    "c": 0.12343,
    "h": 265.5
  },
  "luminance": 0.11923
}

Semantic roles & 50–950 ramp

primary
#405EA8
secondary
#BFAE85
accent
#AF53D5
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0B12
muted
#7C7C81

Preview Lab

Preview with #405EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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