#405EB2#405EB2

#405EB2 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.3% C 0.138 H 266.7°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#405EB2
RGBrgb(64, 94, 178)
HSLhsl(224, 47%, 47%)
HSVhsv(224, 64%, 70%)
CMYKcmyk(64%, 47.2%, 0%, 30.2%)
CIE-LABlab(41.70, 16.28, -48.09)
CIE-LCHlch(41.70, 50.77, 288.71°)
OKLaboklab(50.32% -0.008 -0.1375)
OKLCHoklch(50.32% 0.138 266.7)
XYZxyz(14.1502, 12.3085, 43.7409)
Luminance0.1231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405EB2 #B29440
analogous
#4097B2 #405EB2 #5B40B2
triadic
#405EB2 #B2405E #5EB240
tetradic
#405EB2 #B24097 #B29440 #40B25B
square
#405EB2 #B24097 #B29440 #40B25B
split-complementary
#405EB2 #B25B40 #97B240
monochromatic
#202E58 #304685 #405EB2 #6781C8 #94A6D8

Accessibility & contrast

On white

6.07
#405EB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#405EB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405EB2
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405EB2#FFFFFF#000000##FFFFFF
##405EB21.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3468B5
Deuteranopia (green-blind)
#1F5EB0
Tritanopia (blue-blind)
#00717F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #405eb2;
/* rgb */ color: rgb(64, 94, 178);
/* oklch */ color: oklch(50.3% 0.138 266.7);
Tailwind
colors: {
  custom: {
    50: '#808bc9',
    500: '#405eb2',
    950: '#000000',
  },
}
SCSS
$custom: #405eb2;
$custom-light: #808bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#405eb2",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 178
  },
  "hsl": {
    "h": 224.211,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.50321,
    "c": 0.13774,
    "h": 266.7
  },
  "luminance": 0.1231
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #405EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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