#405CC0#405CC0

#405CC0 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 50.9% C 0.160 H 268.4°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#405CC0
RGBrgb(64, 92, 192)
HSLhsl(227, 50%, 50%)
HSVhsv(227, 67%, 75%)
CMYKcmyk(66.7%, 52.1%, 0%, 24.7%)
CIE-LABlab(42.08, 22.57, -55.67)
CIE-LCHlch(42.08, 60.07, 292.07°)
OKLaboklab(50.9% -0.0044 -0.1598)
OKLCHoklch(50.9% 0.16 268.4)
XYZxyz(15.4527, 12.5486, 51.4667)
Luminance0.1255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405CC0 #C0A440
analogous
#409CC0 #405CC0 #6440C0
triadic
#405CC0 #C0405C #5CC040
tetradic
#405CC0 #C0409C #C0A440 #40C064
square
#405CC0 #C0409C #C0A440 #40C064
split-complementary
#405CC0 #C06440 #9CC040
monochromatic
#213064 #304692 #405CC0 #6E83CF #9CABDE

Accessibility & contrast

On white

5.98
#405CC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#405CC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405CC0
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405CC0#FFFFFF#000000##FFFFFF
##405CC01.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D69C4
Deuteranopia (green-blind)
#005EBE
Tritanopia (blue-blind)
#007485
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #405cc0;
/* rgb */ color: rgb(64, 92, 192);
/* oklch */ color: oklch(50.9% 0.160 268.4);
Tailwind
colors: {
  custom: {
    50: '#8389d4',
    500: '#405cc0',
    950: '#000000',
  },
}
SCSS
$custom: #405cc0;
$custom-light: #8389d4;
$custom-dark: #000000;
JSON
{
  "hex": "#405cc0",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 192
  },
  "hsl": {
    "h": 226.875,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.50898,
    "c": 0.15989,
    "h": 268.4
  },
  "luminance": 0.1255
}

Semantic roles & 50–950 ramp

primary
#405CC0
secondary
#CBBE91
accent
#BB4EDA
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #405CC0

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

Preview Lab → · Contrast checker → · Palette generator →

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