#405EB4#405EB4

#405EB4 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.5% C 0.141 H 266.9°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#405EB4
RGBrgb(64, 94, 180)
HSLhsl(224, 48%, 48%)
HSVhsv(224, 64%, 71%)
CMYKcmyk(64.4%, 47.8%, 0%, 29.4%)
CIE-LABlab(41.83, 17.00, -49.06)
CIE-LCHlch(41.83, 51.92, 289.11°)
OKLaboklab(50.46% -0.0077 -0.1404)
OKLCHoklch(50.46% 0.141 266.9)
XYZxyz(14.3524, 12.3894, 44.8062)
Luminance0.1239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405EB4 #B49640
analogous
#4098B4 #405EB4 #5C40B4
triadic
#405EB4 #B4405E #5EB440
tetradic
#405EB4 #B44098 #B49640 #40B45C
square
#405EB4 #B44098 #B49640 #40B45C
split-complementary
#405EB4 #B45C40 #98B440
monochromatic
#202F5A #304687 #405EB4 #6881C9 #95A7D9

Accessibility & contrast

On white

6.04
#405EB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#405EB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405EB4
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405EB4#FFFFFF#000000##FFFFFF
##405EB41.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3268B7
Deuteranopia (green-blind)
#1B5EB2
Tritanopia (blue-blind)
#007280
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #405eb4;
/* rgb */ color: rgb(64, 94, 180);
/* oklch */ color: oklch(50.5% 0.141 266.9);
Tailwind
colors: {
  custom: {
    50: '#808bcb',
    500: '#405eb4',
    950: '#000000',
  },
}
SCSS
$custom: #405eb4;
$custom-light: #808bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#405eb4",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 180
  },
  "hsl": {
    "h": 224.483,
    "s": 47.541,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50458,
    "c": 0.14057,
    "h": 266.9
  },
  "luminance": 0.12391
}

Semantic roles & 50–950 ramp

primary
#405EB4
secondary
#C5B68B
accent
#B451D7
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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