#405CC3#405CC3

#405CC3 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.1% C 0.164 H 268.6°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#405CC3
RGBrgb(64, 92, 195)
HSLhsl(227, 52%, 51%)
HSVhsv(227, 67%, 76%)
CMYKcmyk(67.2%, 52.8%, 0%, 23.5%)
CIE-LABlab(42.28, 23.64, -57.07)
CIE-LCHlch(42.28, 61.78, 292.50°)
OKLaboklab(51.12% -0.0041 -0.164)
OKLCHoklch(51.12% 0.164 268.6)
XYZxyz(15.7884, 12.6829, 53.2352)
Luminance0.1268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405CC3 #C3A740
analogous
#409DC3 #405CC3 #6640C3
triadic
#405CC3 #C3405C #5CC340
tetradic
#405CC3 #C3409D #C3A740 #40C366
square
#405CC3 #C3409D #C3A740 #40C366
split-complementary
#405CC3 #C36640 #9DC340
monochromatic
#213068 #2F4597 #405CC3 #6F84D2 #9DABE0

Accessibility & contrast

On white

5.94
#405CC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#405CC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405CC3
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405CC3#FFFFFF#000000##FFFFFF
##405CC31.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#176AC7
Deuteranopia (green-blind)
#005EC1
Tritanopia (blue-blind)
#007486
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #405cc3;
/* rgb */ color: rgb(64, 92, 195);
/* oklch */ color: oklch(51.1% 0.164 268.6);
Tailwind
colors: {
  custom: {
    50: '#8389d6',
    500: '#405cc3',
    950: '#000000',
  },
}
SCSS
$custom: #405cc3;
$custom-light: #8389d6;
$custom-dark: #000000;
JSON
{
  "hex": "#405cc3",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 195
  },
  "hsl": {
    "h": 227.176,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.5112,
    "c": 0.16403,
    "h": 268.6
  },
  "luminance": 0.12684
}

Semantic roles & 50–950 ramp

primary
#405CC3
secondary
#CCC092
accent
#BD4CDC
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #405CC3

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

Preview Lab → · Contrast checker → · Palette generator →

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