#405DBC#405DBC

#405DBC is a mid, vivid blue. Relative luminance 0.126; OKLCH L 50.8% C 0.153 H 267.9°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#405DBC
RGBrgb(64, 93, 188)
HSLhsl(226, 49%, 49%)
HSVhsv(226, 66%, 74%)
CMYKcmyk(66%, 50.5%, 0%, 26.3%)
CIE-LABlab(42.07, 20.50, -53.34)
CIE-LCHlch(42.07, 57.14, 291.02°)
OKLaboklab(50.81% -0.0057 -0.153)
OKLCHoklch(50.81% 0.153 267.9)
XYZxyz(15.1027, 12.5481, 49.1933)
Luminance0.1255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DBC #BC9F40
analogous
#409BBC #405DBC #6140BC
triadic
#405DBC #BC405D #5DBC40
tetradic
#405DBC #BC409B #BC9F40 #40BC61
square
#405DBC #BC409B #BC9F40 #40BC61
split-complementary
#405DBC #BC6140 #9BBC40
monochromatic
#213061 #30468E #405DBC #6C83CD #9AA9DD

Accessibility & contrast

On white

5.98
#405DBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#405DBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405DBC
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DBC#FFFFFF#000000##FFFFFF
##405DBC1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2769BF
Deuteranopia (green-blind)
#005EBA
Tritanopia (blue-blind)
#007383
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #405dbc;
/* rgb */ color: rgb(64, 93, 188);
/* oklch */ color: oklch(50.8% 0.153 267.9);
Tailwind
colors: {
  custom: {
    50: '#828ad1',
    500: '#405dbc',
    950: '#000000',
  },
}
SCSS
$custom: #405dbc;
$custom-light: #828ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#405dbc",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 188
  },
  "hsl": {
    "h": 225.968,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.50811,
    "c": 0.15308,
    "h": 267.9
  },
  "luminance": 0.1255
}

Semantic roles & 50–950 ramp

primary
#405DBC
secondary
#C9BB8F
accent
#B94FD9
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0B14
muted
#7D7C82

Preview Lab

Preview with #405DBC

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

Preview Lab → · Contrast checker → · Palette generator →

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