#405AC2#405AC2

#405AC2 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.6% C 0.165 H 269.2°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#405AC2
RGBrgb(64, 90, 194)
HSLhsl(228, 52%, 51%)
HSVhsv(228, 67%, 76%)
CMYKcmyk(67%, 53.6%, 0%, 23.9%)
CIE-LABlab(41.68, 24.57, -57.46)
CIE-LCHlch(41.68, 62.49, 293.15°)
OKLaboklab(50.65% -0.0024 -0.1651)
OKLCHoklch(50.65% 0.165 269.2)
XYZxyz(15.5048, 12.2959, 52.5847)
Luminance0.1230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405AC2 #C2A840
analogous
#409BC2 #405AC2 #6740C2
triadic
#405AC2 #C2405A #5AC240
tetradic
#405AC2 #C2409B #C2A840 #40C267
square
#405AC2 #C2409B #C2A840 #40C267
split-complementary
#405AC2 #C26740 #9BC240
monochromatic
#212F67 #304495 #405AC2 #6E82D1 #9DAAE0

Accessibility & contrast

On white

6.07
#405AC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#405AC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405AC2
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405AC2#FFFFFF#000000##FFFFFF
##405AC21.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F68C6
Deuteranopia (green-blind)
#005DC0
Tritanopia (blue-blind)
#007385
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #405ac2;
/* rgb */ color: rgb(64, 90, 194);
/* oklch */ color: oklch(50.6% 0.165 269.2);
Tailwind
colors: {
  custom: {
    50: '#8388d5',
    500: '#405ac2',
    950: '#000000',
  },
}
SCSS
$custom: #405ac2;
$custom-light: #8388d5;
$custom-dark: #000000;
JSON
{
  "hex": "#405ac2",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 194
  },
  "hsl": {
    "h": 228,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.50646,
    "c": 0.16517,
    "h": 269.2
  },
  "luminance": 0.12297
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #405AC2

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

Preview Lab → · Contrast checker → · Palette generator →

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