#405CCC#405CCC

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

Color values

HEX#405CCC
RGBrgb(64, 92, 204)
HSLhsl(228, 58%, 53%)
HSVhsv(228, 69%, 80%)
CMYKcmyk(68.6%, 54.9%, 0%, 20%)
CIE-LABlab(42.92, 26.86, -61.25)
CIE-LCHlch(42.92, 66.88, 293.68°)
OKLaboklab(51.8% -0.0035 -0.1763)
OKLCHoklch(51.8% 0.176 268.8)
XYZxyz(16.8368, 13.1023, 58.7567)
Luminance0.1310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405CCC #CCB040
analogous
#40A2CC #405CCC #6A40CC
triadic
#405CCC #CC405C #5CCC40
tetradic
#405CCC #CC40A2 #CCB040 #40CC6A
square
#405CCC #CC40A2 #CCB040 #40CC6A
split-complementary
#405CCC #CC6A40 #A2CC40
monochromatic
#1F3073 #2C44A3 #405CCC #7085D9 #A1AEE6

Accessibility & contrast

On white

5.80
#405CCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#405CCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405CCC
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405CCC#FFFFFF#000000##FFFFFF
##405CCC1.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD0
Deuteranopia (green-blind)
#005FCA
Tritanopia (blue-blind)
#00778B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #405ccc;
/* rgb */ color: rgb(64, 92, 204);
/* oklch */ color: oklch(51.8% 0.176 268.8);
Tailwind
colors: {
  custom: {
    50: '#8589dc',
    500: '#405ccc',
    950: '#000000',
  },
}
SCSS
$custom: #405ccc;
$custom-light: #8589dc;
$custom-dark: #000000;
JSON
{
  "hex": "#405ccc",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 204
  },
  "hsl": {
    "h": 228,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.518,
    "c": 0.1763,
    "h": 268.8
  },
  "luminance": 0.13104
}

Semantic roles & 50–950 ramp

primary
#405CCC
secondary
#D2C695
accent
#C247E1
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #405CCC

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

Preview Lab → · Contrast checker → · Palette generator →

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