#405CB6#405CB6

#405CB6 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.2% C 0.146 H 267.9°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#405CB6
RGBrgb(64, 92, 182)
HSLhsl(226, 48%, 48%)
HSVhsv(226, 65%, 71%)
CMYKcmyk(64.8%, 49.5%, 0%, 28.6%)
CIE-LABlab(41.41, 19.00, -50.91)
CIE-LCHlch(41.41, 54.34, 290.46°)
OKLaboklab(50.18% -0.0054 -0.1458)
OKLCHoklch(50.18% 0.146 267.9)
XYZxyz(14.3821, 12.1204, 45.8284)
Luminance0.1212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405CB6 #B69A40
analogous
#4097B6 #405CB6 #5F40B6
triadic
#405CB6 #B6405C #5CB640
tetradic
#405CB6 #B64097 #B69A40 #40B65F
square
#405CB6 #B64097 #B69A40 #40B65F
split-complementary
#405CB6 #B65F40 #97B640
monochromatic
#202E5B #304589 #405CB6 #6980CA #96A6DA

Accessibility & contrast

On white

6.13
#405CB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#405CB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405CB6
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405CB6#FFFFFF#000000##FFFFFF
##405CB61.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B67B9
Deuteranopia (green-blind)
#0E5DB4
Tritanopia (blue-blind)
#007180
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #405cb6;
/* rgb */ color: rgb(64, 92, 182);
/* oklch */ color: oklch(50.2% 0.146 267.9);
Tailwind
colors: {
  custom: {
    50: '#8189cc',
    500: '#405cb6',
    950: '#000000',
  },
}
SCSS
$custom: #405cb6;
$custom-light: #8189cc;
$custom-dark: #000000;
JSON
{
  "hex": "#405cb6",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 182
  },
  "hsl": {
    "h": 225.763,
    "s": 47.967,
    "l": 48.235
  },
  "oklch": {
    "l": 0.50178,
    "c": 0.14593,
    "h": 267.9
  },
  "luminance": 0.12122
}

Semantic roles & 50–950 ramp

primary
#405CB6
secondary
#C6B88C
accent
#B750D8
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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