#405FB0#405FB0

#405FB0 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.4% C 0.134 H 266.0°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#405FB0
RGBrgb(64, 95, 176)
HSLhsl(223, 47%, 47%)
HSVhsv(223, 64%, 69%)
CMYKcmyk(63.6%, 46%, 0%, 31%)
CIE-LABlab(41.86, 14.93, -46.66)
CIE-LCHlch(41.86, 48.99, 287.74°)
OKLaboklab(50.4% -0.0093 -0.1333)
OKLCHoklch(50.4% 0.134 266)
XYZxyz(14.0403, 12.4077, 42.7209)
Luminance0.1241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FB0 #B09140
analogous
#4097B0 #405FB0 #5940B0
triadic
#405FB0 #B0405F #5FB040
tetradic
#405FB0 #B04097 #B09140 #40B059
square
#405FB0 #B04097 #B09140 #40B059
split-complementary
#405FB0 #B05940 #97B040
monochromatic
#1F2F56 #304783 #405FB0 #6681C7 #93A6D8

Accessibility & contrast

On white

6.03
#405FB0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#405FB0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FB0
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FB0#FFFFFF#000000##FFFFFF
##405FB01.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3868B3
Deuteranopia (green-blind)
#255EAE
Tritanopia (blue-blind)
#00717F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #405fb0;
/* rgb */ color: rgb(64, 95, 176);
/* oklch */ color: oklch(50.4% 0.134 266.0);
Tailwind
colors: {
  custom: {
    50: '#808cc8',
    500: '#405fb0',
    950: '#000000',
  },
}
SCSS
$custom: #405fb0;
$custom-light: #808cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#405fb0",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 176
  },
  "hsl": {
    "h": 223.393,
    "s": 46.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.50399,
    "c": 0.13363,
    "h": 266
  },
  "luminance": 0.12409
}

Semantic roles & 50–950 ramp

primary
#405FB0
secondary
#C3B389
accent
#B251D6
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0C13
muted
#7C7D82

Preview Lab

Preview with #405FB0

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

Preview Lab → · Contrast checker → · Palette generator →

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