#405EBA#405EBA

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

Color values

HEX#405EBA
RGBrgb(64, 94, 186)
HSLhsl(225, 49%, 49%)
HSVhsv(225, 66%, 73%)
CMYKcmyk(65.6%, 49.5%, 0%, 27.1%)
CIE-LABlab(42.21, 19.14, -51.95)
CIE-LCHlch(42.21, 55.36, 290.23°)
OKLaboklab(50.88% -0.0069 -0.1489)
OKLCHoklch(50.88% 0.149 267.3)
XYZxyz(14.9769, 12.6392, 48.0952)
Luminance0.1264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405EBA #BA9C40
analogous
#409BBA #405EBA #5F40BA
triadic
#405EBA #BA405E #5EBA40
tetradic
#405EBA #BA409B #BA9C40 #40BA5F
square
#405EBA #BA409B #BA9C40 #40BA5F
split-complementary
#405EBA #BA5F40 #9BBA40
monochromatic
#21305F #30478C #405EBA #6B83CC #99A9DC

Accessibility & contrast

On white

5.95
#405EBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#405EBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405EBA
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405EBA#FFFFFF#000000##FFFFFF
##405EBA1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C69BD
Deuteranopia (green-blind)
#0B5EB8
Tritanopia (blue-blind)
#007383
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #405eba;
/* rgb */ color: rgb(64, 94, 186);
/* oklch */ color: oklch(50.9% 0.149 267.3);
Tailwind
colors: {
  custom: {
    50: '#828bcf',
    500: '#405eba',
    950: '#000000',
  },
}
SCSS
$custom: #405eba;
$custom-light: #828bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#405eba",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 186
  },
  "hsl": {
    "h": 225.246,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.50876,
    "c": 0.14902,
    "h": 267.3
  },
  "luminance": 0.12641
}

Semantic roles & 50–950 ramp

primary
#405EBA
secondary
#C8BA8E
accent
#B74FD8
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #405EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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