#405EB7#405EB7

#405EB7 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 50.7% C 0.145 H 267.1°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#405EB7
RGBrgb(64, 94, 183)
HSLhsl(225, 48%, 48%)
HSVhsv(225, 65%, 72%)
CMYKcmyk(65%, 48.6%, 0%, 28.2%)
CIE-LABlab(42.02, 18.07, -50.51)
CIE-LCHlch(42.02, 53.64, 289.68°)
OKLaboklab(50.67% -0.0073 -0.1446)
OKLCHoklch(50.67% 0.145 267.1)
XYZxyz(14.6614, 12.5129, 46.4332)
Luminance0.1251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405EB7 #B79940
analogous
#4099B7 #405EB7 #5D40B7
triadic
#405EB7 #B7405E #5EB740
tetradic
#405EB7 #B74099 #B79940 #40B75D
square
#405EB7 #B74099 #B79940 #40B75D
split-complementary
#405EB7 #B75D40 #99B740
monochromatic
#202F5C #30478A #405EB7 #6982CB #97A8DB

Accessibility & contrast

On white

6.00
#405EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#405EB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405EB7
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405EB7#FFFFFF#000000##FFFFFF
##405EB71.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F69BA
Deuteranopia (green-blind)
#145EB5
Tritanopia (blue-blind)
#007382
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #405eb7;
/* rgb */ color: rgb(64, 94, 183);
/* oklch */ color: oklch(50.7% 0.145 267.1);
Tailwind
colors: {
  custom: {
    50: '#818bcd',
    500: '#405eb7',
    950: '#000000',
  },
}
SCSS
$custom: #405eb7;
$custom-light: #818bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#405eb7",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 183
  },
  "hsl": {
    "h": 224.874,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.50665,
    "c": 0.1448,
    "h": 267.1
  },
  "luminance": 0.12514
}

Semantic roles & 50–950 ramp

primary
#405EB7
secondary
#C6B88D
accent
#B650D8
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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