#405CB2#405CB2

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

Color values

HEX#405CB2
RGBrgb(64, 92, 178)
HSLhsl(225, 47%, 47%)
HSVhsv(225, 64%, 70%)
CMYKcmyk(64%, 48.3%, 0%, 30.2%)
CIE-LABlab(41.15, 17.57, -48.98)
CIE-LCHlch(41.15, 52.03, 289.74°)
OKLaboklab(49.9% -0.006 -0.1401)
OKLCHoklch(49.9% 0.14 267.6)
XYZxyz(13.9746, 11.9574, 43.6824)
Luminance0.1196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405CB2 #B29640
analogous
#4095B2 #405CB2 #5D40B2
triadic
#405CB2 #B2405C #5CB240
tetradic
#405CB2 #B24095 #B29640 #40B25D
square
#405CB2 #B24095 #B29640 #40B25D
split-complementary
#405CB2 #B25D40 #95B240
monochromatic
#202D58 #304585 #405CB2 #677FC8 #94A5D8

Accessibility & contrast

On white

6.19
#405CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#405CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405CB2
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405CB2#FFFFFF#000000##FFFFFF
##405CB21.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3066B5
Deuteranopia (green-blind)
#195CB0
Tritanopia (blue-blind)
#00707E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #405cb2;
/* rgb */ color: rgb(64, 92, 178);
/* oklch */ color: oklch(49.9% 0.140 267.6);
Tailwind
colors: {
  custom: {
    50: '#8089c9',
    500: '#405cb2',
    950: '#000000',
  },
}
SCSS
$custom: #405cb2;
$custom-light: #8089c9;
$custom-dark: #000000;
JSON
{
  "hex": "#405cb2",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 178
  },
  "hsl": {
    "h": 225.263,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.49898,
    "c": 0.14028,
    "h": 267.6
  },
  "luminance": 0.11959
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #405CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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