#405BAE#405BAE

#405BAE is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.4% C 0.136 H 267.7°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#405BAE
RGBrgb(64, 91, 174)
HSLhsl(225, 46%, 47%)
HSVhsv(225, 63%, 68%)
CMYKcmyk(63.2%, 47.7%, 0%, 31.8%)
CIE-LABlab(40.62, 16.79, -47.47)
CIE-LCHlch(40.62, 50.36, 289.48°)
OKLaboklab(49.41% -0.0055 -0.1357)
OKLCHoklch(49.41% 0.136 267.7)
XYZxyz(13.4928, 11.6270, 41.5694)
Luminance0.1163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405BAE #AE9340
analogous
#4092AE #405BAE #5C40AE
triadic
#405BAE #AE405B #5BAE40
tetradic
#405BAE #AE4092 #AE9340 #40AE5C
square
#405BAE #AE4092 #AE9340 #40AE5C
split-complementary
#405BAE #AE5C40 #92AE40
monochromatic
#1F2C55 #304481 #405BAE #657DC6 #92A3D7

Accessibility & contrast

On white

6.31
#405BAE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#405BAE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405BAE
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405BAE#FFFFFF#000000##FFFFFF
##405BAE1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3165B1
Deuteranopia (green-blind)
#1D5BAC
Tritanopia (blue-blind)
#006E7C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #405bae;
/* rgb */ color: rgb(64, 91, 174);
/* oklch */ color: oklch(49.4% 0.136 267.7);
Tailwind
colors: {
  custom: {
    50: '#8089c7',
    500: '#405bae',
    950: '#000000',
  },
}
SCSS
$custom: #405bae;
$custom-light: #8089c7;
$custom-dark: #000000;
JSON
{
  "hex": "#405bae",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 174
  },
  "hsl": {
    "h": 225.273,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.49411,
    "c": 0.13586,
    "h": 267.7
  },
  "luminance": 0.11628
}

Semantic roles & 50–950 ramp

primary
#405BAE
secondary
#C2B488
accent
#B552D6
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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