#405BCB#405BCB

#405BCB is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.5% C 0.176 H 269.1°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#405BCB
RGBrgb(64, 91, 203)
HSLhsl(228, 57%, 52%)
HSVhsv(228, 68%, 80%)
CMYKcmyk(68.5%, 55.2%, 0%, 20.4%)
CIE-LABlab(42.59, 27.14, -61.21)
CIE-LCHlch(42.59, 66.95, 293.91°)
OKLaboklab(51.53% -0.0028 -0.1762)
OKLCHoklch(51.53% 0.176 269.1)
XYZxyz(16.6312, 12.8823, 58.0984)
Luminance0.1288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405BCB #CBB040
analogous
#40A1CB #405BCB #6A40CB
triadic
#405BCB #CB405B #5BCB40
tetradic
#405BCB #CB40A1 #CBB040 #40CB6A
square
#405BCB #CB40A1 #CBB040 #40CB6A
split-complementary
#405BCB #CB6A40 #A1CB40
monochromatic
#1F2F72 #2C43A2 #405BCB #7084D8 #A0AEE5

Accessibility & contrast

On white

5.87
#405BCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#405BCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405BCB
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405BCB#FFFFFF#000000##FFFFFF
##405BCB1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCF
Deuteranopia (green-blind)
#005EC9
Tritanopia (blue-blind)
#00768A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #405bcb;
/* rgb */ color: rgb(64, 91, 203);
/* oklch */ color: oklch(51.5% 0.176 269.1);
Tailwind
colors: {
  custom: {
    50: '#8589dc',
    500: '#405bcb',
    950: '#000000',
  },
}
SCSS
$custom: #405bcb;
$custom-light: #8589dc;
$custom-dark: #000000;
JSON
{
  "hex": "#405bcb",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 203
  },
  "hsl": {
    "h": 228.345,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.51528,
    "c": 0.17618,
    "h": 269.1
  },
  "luminance": 0.12884
}

Semantic roles & 50–950 ramp

primary
#405BCB
secondary
#D2C695
accent
#C347E0
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #405BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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