#405BB6#405BB6

#405BB6 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.0% C 0.147 H 268.3°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#405BB6
RGBrgb(64, 91, 182)
HSLhsl(226, 48%, 48%)
HSVhsv(226, 65%, 71%)
CMYKcmyk(64.8%, 50%, 0%, 28.6%)
CIE-LABlab(41.13, 19.64, -51.35)
CIE-LCHlch(41.13, 54.97, 290.93°)
OKLaboklab(49.97% -0.0045 -0.1471)
OKLCHoklch(49.97% 0.147 268.3)
XYZxyz(14.2961, 11.9483, 45.7998)
Luminance0.1195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405BB6 #B69B40
analogous
#4096B6 #405BB6 #6040B6
triadic
#405BB6 #B6405B #5BB640
tetradic
#405BB6 #B64096 #B69B40 #40B660
square
#405BB6 #B64096 #B69B40 #40B660
split-complementary
#405BB6 #B66040 #96B640
monochromatic
#202E5B #304489 #405BB6 #697FCA #96A6DA

Accessibility & contrast

On white

6.19
#405BB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#405BB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405BB6
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405BB6#FFFFFF#000000##FFFFFF
##405BB61.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2967B9
Deuteranopia (green-blind)
#075CB4
Tritanopia (blue-blind)
#007080
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #405bb6;
/* rgb */ color: rgb(64, 91, 182);
/* oklch */ color: oklch(50.0% 0.147 268.3);
Tailwind
colors: {
  custom: {
    50: '#8189cc',
    500: '#405bb6',
    950: '#000000',
  },
}
SCSS
$custom: #405bb6;
$custom-light: #8189cc;
$custom-dark: #000000;
JSON
{
  "hex": "#405bb6",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 182
  },
  "hsl": {
    "h": 226.271,
    "s": 47.967,
    "l": 48.235
  },
  "oklch": {
    "l": 0.4997,
    "c": 0.14721,
    "h": 268.3
  },
  "luminance": 0.1195
}

Semantic roles & 50–950 ramp

primary
#405BB6
secondary
#C6B98C
accent
#B950D8
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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