#405FB2#405FB2

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

Color values

HEX#405FB2
RGBrgb(64, 95, 178)
HSLhsl(224, 47%, 47%)
HSVhsv(224, 64%, 70%)
CMYKcmyk(64%, 46.6%, 0%, 30.2%)
CIE-LABlab(41.98, 15.64, -47.64)
CIE-LCHlch(41.98, 50.14, 288.18°)
OKLaboklab(50.53% -0.009 -0.1362)
OKLCHoklch(50.53% 0.136 266.2)
XYZxyz(14.2397, 12.4875, 43.7708)
Luminance0.1249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FB2 #B29340
analogous
#4098B2 #405FB2 #5A40B2
triadic
#405FB2 #B2405F #5FB240
tetradic
#405FB2 #B24098 #B29340 #40B25A
square
#405FB2 #B24098 #B29340 #40B25A
split-complementary
#405FB2 #B25A40 #98B240
monochromatic
#202F58 #304785 #405FB2 #6781C8 #94A7D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##405FB2#FFFFFF#000000##FFFFFF
##405FB21.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)
#3669B5
Deuteranopia (green-blind)
#225EB0
Tritanopia (blue-blind)
#007280
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #405fb2;
/* rgb */ color: rgb(64, 95, 178);
/* oklch */ color: oklch(50.5% 0.136 266.2);
Tailwind
colors: {
  custom: {
    50: '#808cc9',
    500: '#405fb2',
    950: '#000000',
  },
}
SCSS
$custom: #405fb2;
$custom-light: #808cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#405fb2",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 178
  },
  "hsl": {
    "h": 223.684,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.50533,
    "c": 0.13648,
    "h": 266.2
  },
  "luminance": 0.12489
}

Semantic roles & 50–950 ramp

primary
#405FB2
secondary
#C4B48A
accent
#B251D7
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0C13
muted
#7C7D82

Preview Lab

Preview with #405FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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