#405DC2#405DC2

#405DC2 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.2% C 0.161 H 268.2°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#405DC2
RGBrgb(64, 93, 194)
HSLhsl(227, 52%, 51%)
HSVhsv(227, 67%, 76%)
CMYKcmyk(67%, 52.1%, 0%, 23.9%)
CIE-LABlab(42.48, 22.64, -56.17)
CIE-LCHlch(42.48, 60.57, 291.95°)
OKLaboklab(51.25% -0.0051 -0.1613)
OKLCHoklch(51.25% 0.161 268.2)
XYZxyz(15.7630, 12.8122, 52.6708)
Luminance0.1281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DC2 #C2A540
analogous
#409EC2 #405DC2 #6440C2
triadic
#405DC2 #C2405D #5DC240
tetradic
#405DC2 #C2409E #C2A540 #40C264
square
#405DC2 #C2409E #C2A540 #40C264
split-complementary
#405DC2 #C26440 #9EC240
monochromatic
#213067 #304695 #405DC2 #6E84D1 #9DACE0

Accessibility & contrast

On white

5.89
#405DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#405DC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405DC2
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DC2#FFFFFF#000000##FFFFFF
##405DC21.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D6AC6
Deuteranopia (green-blind)
#005FC0
Tritanopia (blue-blind)
#007586
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #405dc2;
/* rgb */ color: rgb(64, 93, 194);
/* oklch */ color: oklch(51.2% 0.161 268.2);
Tailwind
colors: {
  custom: {
    50: '#838ad5',
    500: '#405dc2',
    950: '#000000',
  },
}
SCSS
$custom: #405dc2;
$custom-light: #838ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#405dc2",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 194
  },
  "hsl": {
    "h": 226.615,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51247,
    "c": 0.1614,
    "h": 268.2
  },
  "luminance": 0.12814
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #405DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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