#405BB1#405BB1

#405BB1 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.6% C 0.140 H 267.9°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#405BB1
RGBrgb(64, 91, 177)
HSLhsl(226, 47%, 47%)
HSVhsv(226, 64%, 69%)
CMYKcmyk(63.8%, 48.6%, 0%, 30.6%)
CIE-LABlab(40.81, 17.86, -48.93)
CIE-LCHlch(40.81, 52.09, 290.05°)
OKLaboklab(49.62% -0.0051 -0.14)
OKLCHoklch(49.62% 0.14 267.9)
XYZxyz(13.7885, 11.7453, 43.1269)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405BB1 #B19640
analogous
#4093B1 #405BB1 #5E40B1
triadic
#405BB1 #B1405B #5BB140
tetradic
#405BB1 #B14093 #B19640 #40B15E
square
#405BB1 #B14093 #B19640 #40B15E
split-complementary
#405BB1 #B15E40 #93B140
monochromatic
#1F2D57 #304484 #405BB1 #667EC8 #93A4D8

Accessibility & contrast

On white

6.27
#405BB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#405BB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405BB1
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405BB1#FFFFFF#000000##FFFFFF
##405BB11.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E66B4
Deuteranopia (green-blind)
#175BAF
Tritanopia (blue-blind)
#006F7D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #405bb1;
/* rgb */ color: rgb(64, 91, 177);
/* oklch */ color: oklch(49.6% 0.140 267.9);
Tailwind
colors: {
  custom: {
    50: '#8089c9',
    500: '#405bb1',
    950: '#000000',
  },
}
SCSS
$custom: #405bb1;
$custom-light: #8089c9;
$custom-dark: #000000;
JSON
{
  "hex": "#405bb1",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 177
  },
  "hsl": {
    "h": 225.664,
    "s": 46.888,
    "l": 47.255
  },
  "oklch": {
    "l": 0.49618,
    "c": 0.14013,
    "h": 267.9
  },
  "luminance": 0.11746
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #405BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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