#405CCA#405CCA

#405CCA is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.6% C 0.174 H 268.8°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#405CCA
RGBrgb(64, 92, 202)
HSLhsl(228, 57%, 52%)
HSVhsv(228, 68%, 79%)
CMYKcmyk(68.3%, 54.5%, 0%, 20.8%)
CIE-LABlab(42.77, 26.14, -60.33)
CIE-LCHlch(42.77, 65.75, 293.43°)
OKLaboklab(51.65% -0.0037 -0.1735)
OKLCHoklch(51.65% 0.174 268.8)
XYZxyz(16.5985, 13.0069, 57.5015)
Luminance0.1301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405CCA #CAAE40
analogous
#40A1CA #405CCA #6940CA
triadic
#405CCA #CA405C #5CCA40
tetradic
#405CCA #CA40A1 #CAAE40 #40CA69
square
#405CCA #CA40A1 #CAAE40 #40CA69
split-complementary
#405CCA #CA6940 #A1CA40
monochromatic
#1F3070 #2C44A0 #405CCA #7085D7 #A0AEE5

Accessibility & contrast

On white

5.83
#405CCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#405CCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405CCA
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405CCA#FFFFFF#000000##FFFFFF
##405CCA1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #405cca;
/* rgb */ color: rgb(64, 92, 202);
/* oklch */ color: oklch(51.6% 0.174 268.8);
Tailwind
colors: {
  custom: {
    50: '#8589db',
    500: '#405cca',
    950: '#000000',
  },
}
SCSS
$custom: #405cca;
$custom-light: #8589db;
$custom-dark: #000000;
JSON
{
  "hex": "#405cca",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 202
  },
  "hsl": {
    "h": 227.826,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.51647,
    "c": 0.17359,
    "h": 268.8
  },
  "luminance": 0.13009
}

Semantic roles & 50–950 ramp

primary
#405CCA
secondary
#D1C595
accent
#C148E0
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #405CCA

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

Preview Lab → · Contrast checker → · Palette generator →

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