#405AB7#405AB7

#405AB7 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.8% C 0.150 H 268.7°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#405AB7
RGBrgb(64, 90, 183)
HSLhsl(227, 48%, 48%)
HSVhsv(227, 65%, 72%)
CMYKcmyk(65%, 50.8%, 0%, 28.2%)
CIE-LABlab(40.93, 20.64, -52.26)
CIE-LCHlch(40.93, 56.19, 291.55°)
OKLaboklab(49.84% -0.0034 -0.1498)
OKLCHoklch(49.84% 0.15 268.7)
XYZxyz(14.3148, 11.8199, 46.3177)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405AB7 #B79D40
analogous
#4095B7 #405AB7 #6140B7
triadic
#405AB7 #B7405A #5AB740
tetradic
#405AB7 #B74095 #B79D40 #40B761
square
#405AB7 #B74095 #B79D40 #40B761
split-complementary
#405AB7 #B76140 #95B740
monochromatic
#202D5C #30448A #405AB7 #697FCB #97A6DB

Accessibility & contrast

On white

6.24
#405AB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#405AB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405AB7
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405AB7#FFFFFF#000000##FFFFFF
##405AB71.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2566BA
Deuteranopia (green-blind)
#005BB5
Tritanopia (blue-blind)
#007080
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #405ab7;
/* rgb */ color: rgb(64, 90, 183);
/* oklch */ color: oklch(49.8% 0.150 268.7);
Tailwind
colors: {
  custom: {
    50: '#8188cd',
    500: '#405ab7',
    950: '#000000',
  },
}
SCSS
$custom: #405ab7;
$custom-light: #8188cd;
$custom-dark: #000000;
JSON
{
  "hex": "#405ab7",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 183
  },
  "hsl": {
    "h": 226.891,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.49836,
    "c": 0.14989,
    "h": 268.7
  },
  "luminance": 0.11821
}

Semantic roles & 50–950 ramp

primary
#405AB7
secondary
#C6BA8D
accent
#BA50D8
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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