#405EB9#405EB9

#405EB9 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 50.8% C 0.148 H 267.3°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#405EB9
RGBrgb(64, 94, 185)
HSLhsl(225, 49%, 49%)
HSVhsv(225, 65%, 73%)
CMYKcmyk(65.4%, 49.2%, 0%, 27.5%)
CIE-LABlab(42.15, 18.78, -51.47)
CIE-LCHlch(42.15, 54.79, 290.05°)
OKLaboklab(50.81% -0.007 -0.1474)
OKLCHoklch(50.81% 0.148 267.3)
XYZxyz(14.8710, 12.5968, 47.5373)
Luminance0.1260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405EB9 #B99B40
analogous
#409BB9 #405EB9 #5F40B9
triadic
#405EB9 #B9405E #5EB940
tetradic
#405EB9 #B9409B #B99B40 #40B95F
square
#405EB9 #B9409B #B99B40 #40B95F
split-complementary
#405EB9 #B95F40 #9BB940
monochromatic
#21305E #30478C #405EB9 #6B83CC #98A9DB

Accessibility & contrast

On white

5.97
#405EB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#405EB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405EB9
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405EB9#FFFFFF#000000##FFFFFF
##405EB91.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D69BC
Deuteranopia (green-blind)
#0E5EB7
Tritanopia (blue-blind)
#007382
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #405eb9;
/* rgb */ color: rgb(64, 94, 185);
/* oklch */ color: oklch(50.8% 0.148 267.3);
Tailwind
colors: {
  custom: {
    50: '#818bcf',
    500: '#405eb9',
    950: '#000000',
  },
}
SCSS
$custom: #405eb9;
$custom-light: #818bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#405eb9",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 185
  },
  "hsl": {
    "h": 225.124,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50805,
    "c": 0.14762,
    "h": 267.3
  },
  "luminance": 0.12598
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #405EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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