#405CCE#405CCE

#405CCE is a mid, vivid blue. Relative luminance 0.132; OKLCH L 52.0% C 0.179 H 268.9°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#405CCE
RGBrgb(64, 92, 206)
HSLhsl(228, 59%, 53%)
HSVhsv(228, 69%, 81%)
CMYKcmyk(68.9%, 55.3%, 0%, 19.2%)
CIE-LABlab(43.06, 27.57, -62.16)
CIE-LCHlch(43.06, 68.00, 293.92°)
OKLaboklab(51.95% -0.0034 -0.1789)
OKLCHoklch(51.95% 0.179 268.9)
XYZxyz(17.0783, 13.1988, 60.0281)
Luminance0.1320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405CCE #CEB240
analogous
#40A3CE #405CCE #6B40CE
triadic
#405CCE #CE405C #5CCE40
tetradic
#405CCE #CE40A3 #CEB240 #40CE6B
square
#405CCE #CE40A3 #CEB240 #40CE6B
split-complementary
#405CCE #CE6B40 #A3CE40
monochromatic
#1E2F75 #2B43A6 #405CCE #7186DA #A1AFE7

Accessibility & contrast

On white

5.77
#405CCE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#405CCE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405CCE
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405CCE#FFFFFF#000000##FFFFFF
##405CCE1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD2
Deuteranopia (green-blind)
#005FCC
Tritanopia (blue-blind)
#00788C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #405cce;
/* rgb */ color: rgb(64, 92, 206);
/* oklch */ color: oklch(52.0% 0.179 268.9);
Tailwind
colors: {
  custom: {
    50: '#8689de',
    500: '#405cce',
    950: '#000000',
  },
}
SCSS
$custom: #405cce;
$custom-light: #8689de;
$custom-dark: #000000;
JSON
{
  "hex": "#405cce",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 206
  },
  "hsl": {
    "h": 228.169,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.51954,
    "c": 0.17898,
    "h": 268.9
  },
  "luminance": 0.13201
}

Semantic roles & 50–950 ramp

primary
#405CCE
secondary
#D4C796
accent
#C345E2
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #405CCE

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

Preview Lab → · Contrast checker → · Palette generator →

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