#405BC2#405BC2

#405BC2 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 50.8% C 0.164 H 268.8°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#405BC2
RGBrgb(64, 91, 194)
HSLhsl(228, 52%, 51%)
HSVhsv(228, 67%, 76%)
CMYKcmyk(67%, 53.1%, 0%, 23.9%)
CIE-LABlab(41.95, 23.93, -57.03)
CIE-LCHlch(41.95, 61.85, 292.76°)
OKLaboklab(50.85% -0.0033 -0.1639)
OKLCHoklch(50.85% 0.164 268.8)
XYZxyz(15.5897, 12.4657, 52.6130)
Luminance0.1247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405BC2 #C2A740
analogous
#409CC2 #405BC2 #6640C2
triadic
#405BC2 #C2405B #5BC240
tetradic
#405BC2 #C2409C #C2A740 #40C266
square
#405BC2 #C2409C #C2A740 #40C266
split-complementary
#405BC2 #C26640 #9CC240
monochromatic
#212F67 #304595 #405BC2 #6E83D1 #9DABE0

Accessibility & contrast

On white

6.01
#405BC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#405BC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405BC2
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405BC2#FFFFFF#000000##FFFFFF
##405BC21.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1569C6
Deuteranopia (green-blind)
#005DC0
Tritanopia (blue-blind)
#007386
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #405bc2;
/* rgb */ color: rgb(64, 91, 194);
/* oklch */ color: oklch(50.8% 0.164 268.8);
Tailwind
colors: {
  custom: {
    50: '#8389d5',
    500: '#405bc2',
    950: '#000000',
  },
}
SCSS
$custom: #405bc2;
$custom-light: #8389d5;
$custom-dark: #000000;
JSON
{
  "hex": "#405bc2",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 194
  },
  "hsl": {
    "h": 227.538,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.50845,
    "c": 0.16391,
    "h": 268.8
  },
  "luminance": 0.12467
}

Semantic roles & 50–950 ramp

primary
#405BC2
secondary
#CCC092
accent
#BD4DDB
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #405BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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