#405FB8#405FB8

#405FB8 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 50.9% C 0.145 H 266.8°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#405FB8
RGBrgb(64, 95, 184)
HSLhsl(225, 48%, 49%)
HSVhsv(225, 65%, 72%)
CMYKcmyk(65.2%, 48.4%, 0%, 27.8%)
CIE-LABlab(42.36, 17.78, -50.55)
CIE-LCHlch(42.36, 53.58, 289.38°)
OKLaboklab(50.94% -0.0081 -0.1447)
OKLCHoklch(50.94% 0.145 266.8)
XYZxyz(14.8553, 12.7337, 47.0131)
Luminance0.1273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FB8 #B89940
analogous
#409BB8 #405FB8 #5D40B8
triadic
#405FB8 #B8405F #5FB840
tetradic
#405FB8 #B8409B #B89940 #40B85D
square
#405FB8 #B8409B #B89940 #40B85D
split-complementary
#405FB8 #B85D40 #9BB840
monochromatic
#20305D #30488B #405FB8 #6A83CB #97A9DB

Accessibility & contrast

On white

5.92
#405FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#405FB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FB8
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FB8#FFFFFF#000000##FFFFFF
##405FB81.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#306ABB
Deuteranopia (green-blind)
#165FB6
Tritanopia (blue-blind)
#007482
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #405fb8;
/* rgb */ color: rgb(64, 95, 184);
/* oklch */ color: oklch(50.9% 0.145 266.8);
Tailwind
colors: {
  custom: {
    50: '#818cce',
    500: '#405fb8',
    950: '#000000',
  },
}
SCSS
$custom: #405fb8;
$custom-light: #818cce;
$custom-dark: #000000;
JSON
{
  "hex": "#405fb8",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 184
  },
  "hsl": {
    "h": 224.5,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50945,
    "c": 0.14495,
    "h": 266.8
  },
  "luminance": 0.12735
}

Semantic roles & 50–950 ramp

primary
#405FB8
secondary
#C7B88D
accent
#B550D8
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #405FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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