#405EB5#405EB5

#405EB5 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.5% C 0.142 H 267.0°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#405EB5
RGBrgb(64, 94, 181)
HSLhsl(225, 48%, 48%)
HSVhsv(225, 65%, 71%)
CMYKcmyk(64.6%, 48.1%, 0%, 29%)
CIE-LABlab(41.89, 17.35, -49.54)
CIE-LCHlch(41.89, 52.49, 289.30°)
OKLaboklab(50.53% -0.0075 -0.1418)
OKLCHoklch(50.53% 0.142 267)
XYZxyz(14.4547, 12.4303, 45.3446)
Luminance0.1243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405EB5 #B59740
analogous
#4099B5 #405EB5 #5C40B5
triadic
#405EB5 #B5405E #5EB540
tetradic
#405EB5 #B54099 #B59740 #40B55C
square
#405EB5 #B54099 #B59740 #40B55C
split-complementary
#405EB5 #B55C40 #99B540
monochromatic
#202F5B #304788 #405EB5 #6881CA #96A7DA

Accessibility & contrast

On white

6.02
#405EB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #405EB5
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405EB5#FFFFFF#000000##FFFFFF
##405EB51.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3168B8
Deuteranopia (green-blind)
#195EB3
Tritanopia (blue-blind)
#007281
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #405eb5;
/* rgb */ color: rgb(64, 94, 181);
/* oklch */ color: oklch(50.5% 0.142 267.0);
Tailwind
colors: {
  custom: {
    50: '#818bcc',
    500: '#405eb5',
    950: '#000000',
  },
}
SCSS
$custom: #405eb5;
$custom-light: #818bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#405eb5",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 181
  },
  "hsl": {
    "h": 224.615,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.50527,
    "c": 0.14199,
    "h": 267
  },
  "luminance": 0.12432
}

Semantic roles & 50–950 ramp

primary
#405EB5
secondary
#C5B78B
accent
#B550D7
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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