#405DB2#405DB2

#405DB2 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.1% C 0.139 H 267.1°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#405DB2
RGBrgb(64, 93, 178)
HSLhsl(225, 47%, 47%)
HSVhsv(225, 64%, 70%)
CMYKcmyk(64%, 47.8%, 0%, 30.2%)
CIE-LABlab(41.42, 16.93, -48.53)
CIE-LCHlch(41.42, 51.40, 289.23°)
OKLaboklab(50.11% -0.007 -0.1388)
OKLCHoklch(50.11% 0.139 267.1)
XYZxyz(14.0618, 12.1318, 43.7115)
Luminance0.1213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DB2 #B29540
analogous
#4096B2 #405DB2 #5C40B2
triadic
#405DB2 #B2405D #5DB240
tetradic
#405DB2 #B24096 #B29540 #40B25C
square
#405DB2 #B24096 #B29540 #40B25C
split-complementary
#405DB2 #B25C40 #96B240
monochromatic
#202E58 #304585 #405DB2 #6780C8 #94A5D8

Accessibility & contrast

On white

6.13
#405DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#405DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405DB2
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DB2#FFFFFF#000000##FFFFFF
##405DB21.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3267B5
Deuteranopia (green-blind)
#1C5DB0
Tritanopia (blue-blind)
#00717F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #405db2;
/* rgb */ color: rgb(64, 93, 178);
/* oklch */ color: oklch(50.1% 0.139 267.1);
Tailwind
colors: {
  custom: {
    50: '#808ac9',
    500: '#405db2',
    950: '#000000',
  },
}
SCSS
$custom: #405db2;
$custom-light: #808ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#405db2",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 178
  },
  "hsl": {
    "h": 224.737,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.50109,
    "c": 0.139,
    "h": 267.1
  },
  "luminance": 0.12133
}

Semantic roles & 50–950 ramp

primary
#405DB2
secondary
#C4B58A
accent
#B551D7
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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