#405FB3#405FB3

#405FB3 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 50.6% C 0.138 H 266.3°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#405FB3
RGBrgb(64, 95, 179)
HSLhsl(224, 47%, 48%)
HSVhsv(224, 64%, 70%)
CMYKcmyk(64.2%, 46.9%, 0%, 29.8%)
CIE-LABlab(42.04, 16.00, -48.13)
CIE-LCHlch(42.04, 50.72, 288.39°)
OKLaboklab(50.6% -0.0088 -0.1376)
OKLCHoklch(50.6% 0.138 266.3)
XYZxyz(14.3404, 12.5278, 44.3015)
Luminance0.1253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FB3 #B39440
analogous
#4098B3 #405FB3 #5A40B3
triadic
#405FB3 #B3405F #5FB340
tetradic
#405FB3 #B34098 #B39440 #40B35A
square
#405FB3 #B34098 #B39440 #40B35A
split-complementary
#405FB3 #B35A40 #98B340
monochromatic
#202F59 #304786 #405FB3 #6782C9 #94A7D9

Accessibility & contrast

On white

5.99
#405FB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#405FB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FB3
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FB3#FFFFFF#000000##FFFFFF
##405FB31.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3569B6
Deuteranopia (green-blind)
#205EB1
Tritanopia (blue-blind)
#007280
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #405fb3;
/* rgb */ color: rgb(64, 95, 179);
/* oklch */ color: oklch(50.6% 0.138 266.3);
Tailwind
colors: {
  custom: {
    50: '#808cca',
    500: '#405fb3',
    950: '#000000',
  },
}
SCSS
$custom: #405fb3;
$custom-light: #808cca;
$custom-dark: #000000;
JSON
{
  "hex": "#405fb3",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 179
  },
  "hsl": {
    "h": 223.826,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.50601,
    "c": 0.13789,
    "h": 266.3
  },
  "luminance": 0.12529
}

Semantic roles & 50–950 ramp

primary
#405FB3
secondary
#C4B58A
accent
#B351D7
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0C13
muted
#7C7D82

Preview Lab

Preview with #405FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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