#405BB7#405BB7

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

Color values

HEX#405BB7
RGBrgb(64, 91, 183)
HSLhsl(226, 48%, 48%)
HSVhsv(226, 65%, 72%)
CMYKcmyk(65%, 50.3%, 0%, 28.2%)
CIE-LABlab(41.20, 20.00, -51.83)
CIE-LCHlch(41.20, 55.55, 291.10°)
OKLaboklab(50.04% -0.0044 -0.1485)
OKLCHoklch(50.04% 0.149 268.3)
XYZxyz(14.3998, 11.9897, 46.3460)
Luminance0.1199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405BB7 #B79C40
analogous
#4096B7 #405BB7 #6140B7
triadic
#405BB7 #B7405B #5BB740
tetradic
#405BB7 #B74096 #B79C40 #40B761
square
#405BB7 #B74096 #B79C40 #40B761
split-complementary
#405BB7 #B76140 #96B740
monochromatic
#202E5C #30448A #405BB7 #6980CB #97A6DB

Accessibility & contrast

On white

6.18
#405BB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#405BB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405BB7
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405BB7#FFFFFF#000000##FFFFFF
##405BB71.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2867BA
Deuteranopia (green-blind)
#035CB5
Tritanopia (blue-blind)
#007080
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #405bb7;
/* rgb */ color: rgb(64, 91, 183);
/* oklch */ color: oklch(50.0% 0.149 268.3);
Tailwind
colors: {
  custom: {
    50: '#8189cd',
    500: '#405bb7',
    950: '#000000',
  },
}
SCSS
$custom: #405bb7;
$custom-light: #8189cd;
$custom-dark: #000000;
JSON
{
  "hex": "#405bb7",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 183
  },
  "hsl": {
    "h": 226.387,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.50041,
    "c": 0.14861,
    "h": 268.3
  },
  "luminance": 0.11991
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #405BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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