#405CC2#405CC2

#405CC2 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.0% C 0.163 H 268.5°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#405CC2
RGBrgb(64, 92, 194)
HSLhsl(227, 52%, 51%)
HSVhsv(227, 67%, 76%)
CMYKcmyk(67%, 52.6%, 0%, 23.9%)
CIE-LABlab(42.21, 23.28, -56.61)
CIE-LCHlch(42.21, 61.21, 292.36°)
OKLaboklab(51.05% -0.0042 -0.1626)
OKLCHoklch(51.05% 0.163 268.5)
XYZxyz(15.6758, 12.6378, 52.6417)
Luminance0.1264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405CC2 #C2A640
analogous
#409DC2 #405CC2 #6540C2
triadic
#405CC2 #C2405C #5CC240
tetradic
#405CC2 #C2409D #C2A640 #40C265
square
#405CC2 #C2409D #C2A640 #40C265
split-complementary
#405CC2 #C26540 #9DC240
monochromatic
#213067 #304695 #405CC2 #6E84D1 #9DABE0

Accessibility & contrast

On white

5.95
#405CC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#405CC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405CC2
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405CC2#FFFFFF#000000##FFFFFF
##405CC21.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#196AC6
Deuteranopia (green-blind)
#005EC0
Tritanopia (blue-blind)
#007486
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #405cc2;
/* rgb */ color: rgb(64, 92, 194);
/* oklch */ color: oklch(51.0% 0.163 268.5);
Tailwind
colors: {
  custom: {
    50: '#8389d5',
    500: '#405cc2',
    950: '#000000',
  },
}
SCSS
$custom: #405cc2;
$custom-light: #8389d5;
$custom-dark: #000000;
JSON
{
  "hex": "#405cc2",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 194
  },
  "hsl": {
    "h": 227.077,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51046,
    "c": 0.16266,
    "h": 268.5
  },
  "luminance": 0.12639
}

Semantic roles & 50–950 ramp

primary
#405CC2
secondary
#CCBF92
accent
#BC4DDB
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #405CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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