#405EB3#405EB3

#405EB3 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.4% C 0.139 H 266.8°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#405EB3
RGBrgb(64, 94, 179)
HSLhsl(224, 47%, 48%)
HSVhsv(224, 64%, 70%)
CMYKcmyk(64.2%, 47.5%, 0%, 29.8%)
CIE-LABlab(41.77, 16.64, -48.57)
CIE-LCHlch(41.77, 51.34, 288.91°)
OKLaboklab(50.39% -0.0078 -0.1389)
OKLCHoklch(50.39% 0.139 266.8)
XYZxyz(14.2509, 12.3488, 44.2716)
Luminance0.1235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405EB3 #B39540
analogous
#4097B3 #405EB3 #5C40B3
triadic
#405EB3 #B3405E #5EB340
tetradic
#405EB3 #B34097 #B39540 #40B35C
square
#405EB3 #B34097 #B39540 #40B35C
split-complementary
#405EB3 #B35C40 #97B340
monochromatic
#202F59 #304686 #405EB3 #6781C9 #94A6D9

Accessibility & contrast

On white

6.05
#405EB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#405EB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405EB3
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405EB3#FFFFFF#000000##FFFFFF
##405EB31.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3368B6
Deuteranopia (green-blind)
#1D5EB1
Tritanopia (blue-blind)
#007280
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #405eb3;
/* rgb */ color: rgb(64, 94, 179);
/* oklch */ color: oklch(50.4% 0.139 266.8);
Tailwind
colors: {
  custom: {
    50: '#808bca',
    500: '#405eb3',
    950: '#000000',
  },
}
SCSS
$custom: #405eb3;
$custom-light: #808bca;
$custom-dark: #000000;
JSON
{
  "hex": "#405eb3",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 179
  },
  "hsl": {
    "h": 224.348,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.50389,
    "c": 0.13916,
    "h": 266.8
  },
  "luminance": 0.1235
}

Semantic roles & 50–950 ramp

primary
#405EB3
secondary
#C4B58A
accent
#B451D7
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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