#405EB6#405EB6

#405EB6 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 50.6% C 0.143 H 267.0°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#405EB6
RGBrgb(64, 94, 182)
HSLhsl(225, 48%, 48%)
HSVhsv(225, 65%, 71%)
CMYKcmyk(64.8%, 48.4%, 0%, 28.6%)
CIE-LABlab(41.96, 17.71, -50.02)
CIE-LCHlch(41.96, 53.07, 289.49°)
OKLaboklab(50.6% -0.0074 -0.1432)
OKLCHoklch(50.6% 0.143 267)
XYZxyz(14.5577, 12.4715, 45.8870)
Luminance0.1247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405EB6 #B69840
analogous
#4099B6 #405EB6 #5D40B6
triadic
#405EB6 #B6405E #5EB640
tetradic
#405EB6 #B64099 #B69840 #40B65D
square
#405EB6 #B64099 #B69840 #40B65D
split-complementary
#405EB6 #B65D40 #99B640
monochromatic
#202F5B #304789 #405EB6 #6982CA #96A8DA

Accessibility & contrast

On white

6.01
#405EB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#405EB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405EB6
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405EB6#FFFFFF#000000##FFFFFF
##405EB61.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3069B9
Deuteranopia (green-blind)
#175EB4
Tritanopia (blue-blind)
#007281
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #405eb6;
/* rgb */ color: rgb(64, 94, 182);
/* oklch */ color: oklch(50.6% 0.143 267.0);
Tailwind
colors: {
  custom: {
    50: '#818bcc',
    500: '#405eb6',
    950: '#000000',
  },
}
SCSS
$custom: #405eb6;
$custom-light: #818bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#405eb6",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 182
  },
  "hsl": {
    "h": 224.746,
    "s": 47.967,
    "l": 48.235
  },
  "oklch": {
    "l": 0.50596,
    "c": 0.1434,
    "h": 267
  },
  "luminance": 0.12473
}

Semantic roles & 50–950 ramp

primary
#405EB6
secondary
#C6B78C
accent
#B550D8
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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