#405BB2#405BB2

#405BB2 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.7% C 0.142 H 268.0°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#405BB2
RGBrgb(64, 91, 178)
HSLhsl(226, 47%, 47%)
HSVhsv(226, 64%, 70%)
CMYKcmyk(64%, 48.9%, 0%, 30.2%)
CIE-LABlab(40.87, 18.21, -49.42)
CIE-LCHlch(40.87, 52.67, 290.23°)
OKLaboklab(49.69% -0.005 -0.1415)
OKLCHoklch(49.69% 0.142 268)
XYZxyz(13.8886, 11.7853, 43.6537)
Luminance0.1179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405BB2 #B29740
analogous
#4094B2 #405BB2 #5E40B2
triadic
#405BB2 #B2405B #5BB240
tetradic
#405BB2 #B24094 #B29740 #40B25E
square
#405BB2 #B24094 #B29740 #40B25E
split-complementary
#405BB2 #B25E40 #94B240
monochromatic
#202D58 #304485 #405BB2 #677EC8 #94A4D8

Accessibility & contrast

On white

6.25
#405BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#405BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405BB2
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405BB2#FFFFFF#000000##FFFFFF
##405BB21.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D66B5
Deuteranopia (green-blind)
#155CB0
Tritanopia (blue-blind)
#006F7E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #405bb2;
/* rgb */ color: rgb(64, 91, 178);
/* oklch */ color: oklch(49.7% 0.142 268.0);
Tailwind
colors: {
  custom: {
    50: '#8089ca',
    500: '#405bb2',
    950: '#000000',
  },
}
SCSS
$custom: #405bb2;
$custom-light: #8089ca;
$custom-dark: #000000;
JSON
{
  "hex": "#405bb2",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 178
  },
  "hsl": {
    "h": 225.789,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.49688,
    "c": 0.14156,
    "h": 268
  },
  "luminance": 0.11787
}

Semantic roles & 50–950 ramp

primary
#405BB2
secondary
#C4B68A
accent
#B751D7
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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