#405FC2#405FC2

#405FC2 is a mid, vivid blue. Relative luminance 0.132; OKLCH L 51.7% C 0.159 H 267.5°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#405FC2
RGBrgb(64, 95, 194)
HSLhsl(226, 52%, 51%)
HSVhsv(226, 67%, 76%)
CMYKcmyk(67%, 51%, 0%, 23.9%)
CIE-LABlab(43.02, 21.36, -55.31)
CIE-LCHlch(43.02, 59.29, 291.12°)
OKLaboklab(51.65% -0.0069 -0.1587)
OKLCHoklch(51.65% 0.159 267.5)
XYZxyz(15.9408, 13.1679, 52.7301)
Luminance0.1317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FC2 #C2A340
analogous
#40A0C2 #405FC2 #6240C2
triadic
#405FC2 #C2405F #5FC240
tetradic
#405FC2 #C240A0 #C2A340 #40C262
square
#405FC2 #C240A0 #C2A340 #40C262
split-complementary
#405FC2 #C26240 #A0C240
monochromatic
#213267 #304895 #405FC2 #6E86D1 #9DADE0

Accessibility & contrast

On white

5.78
#405FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#405FC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FC2
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FC2#FFFFFF#000000##FFFFFF
##405FC21.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#246CC6
Deuteranopia (green-blind)
#0060C0
Tritanopia (blue-blind)
#007687
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #405fc2;
/* rgb */ color: rgb(64, 95, 194);
/* oklch */ color: oklch(51.7% 0.159 267.5);
Tailwind
colors: {
  custom: {
    50: '#838cd5',
    500: '#405fc2',
    950: '#000000',
  },
}
SCSS
$custom: #405fc2;
$custom-light: #838cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#405fc2",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 194
  },
  "hsl": {
    "h": 225.692,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51653,
    "c": 0.15889,
    "h": 267.5
  },
  "luminance": 0.13169
}

Semantic roles & 50–950 ramp

primary
#405FC2
secondary
#CCBE92
accent
#B94DDB
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0C14
muted
#7D7D83

Preview Lab

Preview with #405FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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