#405EB8#405EB8

#405EB8 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 50.7% C 0.146 H 267.2°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#405EB8
RGBrgb(64, 94, 184)
HSLhsl(225, 48%, 49%)
HSVhsv(225, 65%, 72%)
CMYKcmyk(65.2%, 48.9%, 0%, 27.8%)
CIE-LABlab(42.08, 18.42, -50.99)
CIE-LCHlch(42.08, 54.21, 289.87°)
OKLaboklab(50.74% -0.0071 -0.146)
OKLCHoklch(50.74% 0.146 267.2)
XYZxyz(14.7658, 12.5547, 46.9833)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405EB8 #B89A40
analogous
#409AB8 #405EB8 #5E40B8
triadic
#405EB8 #B8405E #5EB840
tetradic
#405EB8 #B8409A #B89A40 #40B85E
square
#405EB8 #B8409A #B89A40 #40B85E
split-complementary
#405EB8 #B85E40 #9AB840
monochromatic
#20305D #30478B #405EB8 #6A82CB #97A8DB

Accessibility & contrast

On white

5.98
#405EB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#405EB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405EB8
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405EB8#FFFFFF#000000##FFFFFF
##405EB81.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E69BB
Deuteranopia (green-blind)
#125EB6
Tritanopia (blue-blind)
#007382
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #405eb8;
/* rgb */ color: rgb(64, 94, 184);
/* oklch */ color: oklch(50.7% 0.146 267.2);
Tailwind
colors: {
  custom: {
    50: '#818bce',
    500: '#405eb8',
    950: '#000000',
  },
}
SCSS
$custom: #405eb8;
$custom-light: #818bce;
$custom-dark: #000000;
JSON
{
  "hex": "#405eb8",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 184
  },
  "hsl": {
    "h": 225,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50735,
    "c": 0.14621,
    "h": 267.2
  },
  "luminance": 0.12556
}

Semantic roles & 50–950 ramp

primary
#405EB8
secondary
#C7B88D
accent
#B650D8
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #405EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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