#405BB8#405BB8

#405BB8 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.1% C 0.150 H 268.4°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#405BB8
RGBrgb(64, 91, 184)
HSLhsl(227, 48%, 49%)
HSVhsv(227, 65%, 72%)
CMYKcmyk(65.2%, 50.5%, 0%, 27.8%)
CIE-LABlab(41.27, 20.35, -52.30)
CIE-LCHlch(41.27, 56.13, 291.26°)
OKLaboklab(50.11% -0.0042 -0.15)
OKLCHoklch(50.11% 0.15 268.4)
XYZxyz(14.5042, 12.0315, 46.8961)
Luminance0.1203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405BB8 #B89D40
analogous
#4097B8 #405BB8 #6140B8
triadic
#405BB8 #B8405B #5BB840
tetradic
#405BB8 #B84097 #B89D40 #40B861
square
#405BB8 #B84097 #B89D40 #40B861
split-complementary
#405BB8 #B86140 #97B840
monochromatic
#202E5D #30458B #405BB8 #6A80CB #97A7DB

Accessibility & contrast

On white

6.16
#405BB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#405BB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405BB8
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405BB8#FFFFFF#000000##FFFFFF
##405BB81.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2667BB
Deuteranopia (green-blind)
#005CB6
Tritanopia (blue-blind)
#007181
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #405bb8;
/* rgb */ color: rgb(64, 91, 184);
/* oklch */ color: oklch(50.1% 0.150 268.4);
Tailwind
colors: {
  custom: {
    50: '#8189ce',
    500: '#405bb8',
    950: '#000000',
  },
}
SCSS
$custom: #405bb8;
$custom-light: #8189ce;
$custom-dark: #000000;
JSON
{
  "hex": "#405bb8",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 184
  },
  "hsl": {
    "h": 226.5,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50113,
    "c": 0.15002,
    "h": 268.4
  },
  "luminance": 0.12033
}

Semantic roles & 50–950 ramp

primary
#405BB8
secondary
#C7BA8D
accent
#B950D8
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #405BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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