#405CB3#405CB3

#405CB3 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.0% C 0.142 H 267.6°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#405CB3
RGBrgb(64, 92, 179)
HSLhsl(225, 47%, 48%)
HSVhsv(225, 64%, 70%)
CMYKcmyk(64.2%, 48.6%, 0%, 29.8%)
CIE-LABlab(41.21, 17.93, -49.46)
CIE-LCHlch(41.21, 52.61, 289.92°)
OKLaboklab(49.97% -0.0058 -0.1416)
OKLCHoklch(49.97% 0.142 267.6)
XYZxyz(14.0754, 11.9977, 44.2131)
Luminance0.1200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405CB3 #B39740
analogous
#4096B3 #405CB3 #5D40B3
triadic
#405CB3 #B3405C #5CB340
tetradic
#405CB3 #B34096 #B39740 #40B35D
square
#405CB3 #B34096 #B39740 #40B35D
split-complementary
#405CB3 #B35D40 #96B340
monochromatic
#202E59 #304586 #405CB3 #677FC9 #94A5D9

Accessibility & contrast

On white

6.18
#405CB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#405CB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405CB3
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405CB3#FFFFFF#000000##FFFFFF
##405CB31.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F67B6
Deuteranopia (green-blind)
#165CB1
Tritanopia (blue-blind)
#00707F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #405cb3;
/* rgb */ color: rgb(64, 92, 179);
/* oklch */ color: oklch(50.0% 0.142 267.6);
Tailwind
colors: {
  custom: {
    50: '#8089ca',
    500: '#405cb3',
    950: '#000000',
  },
}
SCSS
$custom: #405cb3;
$custom-light: #8089ca;
$custom-dark: #000000;
JSON
{
  "hex": "#405cb3",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 179
  },
  "hsl": {
    "h": 225.391,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.49967,
    "c": 0.14169,
    "h": 267.6
  },
  "luminance": 0.11999
}

Semantic roles & 50–950 ramp

primary
#405CB3
secondary
#C4B68A
accent
#B651D7
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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