#405EBB#405EBB

#405EBB is a mid, vivid blue. Relative luminance 0.127; OKLCH L 50.9% C 0.150 H 267.4°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#405EBB
RGBrgb(64, 94, 187)
HSLhsl(225, 49%, 49%)
HSVhsv(225, 66%, 73%)
CMYKcmyk(65.8%, 49.7%, 0%, 26.7%)
CIE-LABlab(42.28, 19.50, -52.42)
CIE-LCHlch(42.28, 55.93, 290.40°)
OKLaboklab(50.95% -0.0068 -0.1503)
OKLCHoklch(50.95% 0.15 267.4)
XYZxyz(15.0836, 12.6818, 48.6570)
Luminance0.1268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405EBB #BB9D40
analogous
#409CBB #405EBB #6040BB
triadic
#405EBB #BB405E #5EBB40
tetradic
#405EBB #BB409C #BB9D40 #40BB60
square
#405EBB #BB409C #BB9D40 #40BB60
split-complementary
#405EBB #BB6040 #9CBB40
monochromatic
#213060 #30478D #405EBB #6C83CD #99AADC

Accessibility & contrast

On white

5.94
#405EBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#405EBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405EBB
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405EBB#FFFFFF#000000##FFFFFF
##405EBB1.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B6ABE
Deuteranopia (green-blind)
#065FB9
Tritanopia (blue-blind)
#007483
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #405ebb;
/* rgb */ color: rgb(64, 94, 187);
/* oklch */ color: oklch(50.9% 0.150 267.4);
Tailwind
colors: {
  custom: {
    50: '#828bd0',
    500: '#405ebb',
    950: '#000000',
  },
}
SCSS
$custom: #405ebb;
$custom-light: #828bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#405ebb",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 187
  },
  "hsl": {
    "h": 225.366,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.50946,
    "c": 0.15042,
    "h": 267.4
  },
  "luminance": 0.12683
}

Semantic roles & 50–950 ramp

primary
#405EBB
secondary
#C8BA8F
accent
#B74FD9
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0B14
muted
#7D7C82

Preview Lab

Preview with #405EBB

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

Preview Lab → · Contrast checker → · Palette generator →

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