#405CB5#405CB5

#405CB5 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.1% C 0.145 H 267.8°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#405CB5
RGBrgb(64, 92, 181)
HSLhsl(226, 48%, 48%)
HSVhsv(226, 65%, 71%)
CMYKcmyk(64.6%, 49.2%, 0%, 29%)
CIE-LABlab(41.34, 18.64, -50.43)
CIE-LCHlch(41.34, 53.76, 290.29°)
OKLaboklab(50.11% -0.0056 -0.1444)
OKLCHoklch(50.11% 0.145 267.8)
XYZxyz(14.2791, 12.0792, 45.2861)
Luminance0.1208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405CB5 #B59940
analogous
#4096B5 #405CB5 #5E40B5
triadic
#405CB5 #B5405C #5CB540
tetradic
#405CB5 #B54096 #B59940 #40B55E
square
#405CB5 #B54096 #B59940 #40B55E
split-complementary
#405CB5 #B55E40 #96B540
monochromatic
#202E5B #304588 #405CB5 #6880CA #96A6DA

Accessibility & contrast

On white

6.15
#405CB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#405CB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405CB5
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405CB5#FFFFFF#000000##FFFFFF
##405CB51.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D67B8
Deuteranopia (green-blind)
#115DB3
Tritanopia (blue-blind)
#007180
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #405cb5;
/* rgb */ color: rgb(64, 92, 181);
/* oklch */ color: oklch(50.1% 0.145 267.8);
Tailwind
colors: {
  custom: {
    50: '#8189cc',
    500: '#405cb5',
    950: '#000000',
  },
}
SCSS
$custom: #405cb5;
$custom-light: #8189cc;
$custom-dark: #000000;
JSON
{
  "hex": "#405cb5",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 181
  },
  "hsl": {
    "h": 225.641,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.50107,
    "c": 0.14453,
    "h": 267.8
  },
  "luminance": 0.1208
}

Semantic roles & 50–950 ramp

primary
#405CB5
secondary
#C5B78B
accent
#B750D7
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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