#405CC9#405CC9

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

Color values

HEX#405CC9
RGBrgb(64, 92, 201)
HSLhsl(228, 56%, 52%)
HSVhsv(228, 68%, 79%)
CMYKcmyk(68.2%, 54.2%, 0%, 21.2%)
CIE-LABlab(42.70, 25.79, -59.86)
CIE-LCHlch(42.70, 65.18, 293.30°)
OKLaboklab(51.57% -0.0037 -0.1722)
OKLCHoklch(51.57% 0.172 268.8)
XYZxyz(16.4805, 12.9597, 56.8800)
Luminance0.1296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405CC9 #C9AD40
analogous
#40A1C9 #405CC9 #6940C9
triadic
#405CC9 #C9405C #5CC940
tetradic
#405CC9 #C940A1 #C9AD40 #40C969
square
#405CC9 #C940A1 #C9AD40 #40C969
split-complementary
#405CC9 #C96940 #A1C940
monochromatic
#1F306F #2D449F #405CC9 #7085D6 #9FADE4

Accessibility & contrast

On white

5.85
#405CC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#405CC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405CC9
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405CC9#FFFFFF#000000##FFFFFF
##405CC91.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#036BCD
Deuteranopia (green-blind)
#005FC7
Tritanopia (blue-blind)
#007689
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #405cc9;
/* rgb */ color: rgb(64, 92, 201);
/* oklch */ color: oklch(51.6% 0.172 268.8);
Tailwind
colors: {
  custom: {
    50: '#8589da',
    500: '#405cc9',
    950: '#000000',
  },
}
SCSS
$custom: #405cc9;
$custom-light: #8589da;
$custom-dark: #000000;
JSON
{
  "hex": "#405cc9",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 201
  },
  "hsl": {
    "h": 227.737,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.51571,
    "c": 0.17223,
    "h": 268.8
  },
  "luminance": 0.12961
}

Semantic roles & 50–950 ramp

primary
#405CC9
secondary
#D0C494
accent
#C049DF
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #405CC9

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

Preview Lab → · Contrast checker → · Palette generator →

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