#405CCB#405CCB

#405CCB is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.7% C 0.175 H 268.8°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#405CCB
RGBrgb(64, 92, 203)
HSLhsl(228, 57%, 52%)
HSVhsv(228, 68%, 80%)
CMYKcmyk(68.5%, 54.7%, 0%, 20.4%)
CIE-LABlab(42.85, 26.50, -60.79)
CIE-LCHlch(42.85, 66.31, 293.55°)
OKLaboklab(51.72% -0.0036 -0.1749)
OKLCHoklch(51.72% 0.175 268.8)
XYZxyz(16.7173, 13.0544, 58.1271)
Luminance0.1306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405CCB #CBAF40
analogous
#40A1CB #405CCB #6A40CB
triadic
#405CCB #CB405C #5CCB40
tetradic
#405CCB #CB40A1 #CBAF40 #40CB6A
square
#405CCB #CB40A1 #CBAF40 #40CB6A
split-complementary
#405CCB #CB6A40 #A1CB40
monochromatic
#1F3072 #2C44A2 #405CCB #7085D8 #A0AEE5

Accessibility & contrast

On white

5.82
#405CCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#405CCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405CCB
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405CCB#FFFFFF#000000##FFFFFF
##405CCB1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CCF
Deuteranopia (green-blind)
#005FC9
Tritanopia (blue-blind)
#00778A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #405ccb;
/* rgb */ color: rgb(64, 92, 203);
/* oklch */ color: oklch(51.7% 0.175 268.8);
Tailwind
colors: {
  custom: {
    50: '#8589dc',
    500: '#405ccb',
    950: '#000000',
  },
}
SCSS
$custom: #405ccb;
$custom-light: #8589dc;
$custom-dark: #000000;
JSON
{
  "hex": "#405ccb",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 203
  },
  "hsl": {
    "h": 227.914,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.51723,
    "c": 0.17494,
    "h": 268.8
  },
  "luminance": 0.13056
}

Semantic roles & 50–950 ramp

primary
#405CCB
secondary
#D2C595
accent
#C247E0
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #405CCB

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

Preview Lab → · Contrast checker → · Palette generator →

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