#405EC2#405EC2

#405EC2 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.4% C 0.160 H 267.8°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#405EC2
RGBrgb(64, 94, 194)
HSLhsl(226, 52%, 51%)
HSVhsv(226, 67%, 76%)
CMYKcmyk(67%, 51.5%, 0%, 23.9%)
CIE-LABlab(42.75, 22.00, -55.74)
CIE-LCHlch(42.75, 59.93, 291.54°)
OKLaboklab(51.45% -0.006 -0.16)
OKLCHoklch(51.45% 0.16 267.8)
XYZxyz(15.8513, 12.9889, 52.7002)
Luminance0.1299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405EC2 #C2A440
analogous
#409FC2 #405EC2 #6340C2
triadic
#405EC2 #C2405E #5EC240
tetradic
#405EC2 #C2409F #C2A440 #40C263
square
#405EC2 #C2409F #C2A440 #40C263
split-complementary
#405EC2 #C26340 #9FC240
monochromatic
#213167 #304795 #405EC2 #6E85D1 #9DACE0

Accessibility & contrast

On white

5.84
#405EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#405EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405EC2
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405EC2#FFFFFF#000000##FFFFFF
##405EC21.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#216BC6
Deuteranopia (green-blind)
#005FC0
Tritanopia (blue-blind)
#007687
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #405ec2;
/* rgb */ color: rgb(64, 94, 194);
/* oklch */ color: oklch(51.4% 0.160 267.8);
Tailwind
colors: {
  custom: {
    50: '#838bd5',
    500: '#405ec2',
    950: '#000000',
  },
}
SCSS
$custom: #405ec2;
$custom-light: #838bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#405ec2",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 194
  },
  "hsl": {
    "h": 226.154,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.5145,
    "c": 0.16014,
    "h": 267.8
  },
  "luminance": 0.1299
}

Semantic roles & 50–950 ramp

primary
#405EC2
secondary
#CCBE92
accent
#BA4DDB
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #405EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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