#405DBA#405DBA

#405DBA is a mid, vivid blue. Relative luminance 0.125; OKLCH L 50.7% C 0.150 H 267.7°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#405DBA
RGBrgb(64, 93, 186)
HSLhsl(226, 49%, 49%)
HSVhsv(226, 66%, 73%)
CMYKcmyk(65.6%, 50%, 0%, 27.1%)
CIE-LABlab(41.94, 19.78, -52.38)
CIE-LCHlch(41.94, 55.99, 290.69°)
OKLaboklab(50.67% -0.0059 -0.1502)
OKLCHoklch(50.67% 0.15 267.7)
XYZxyz(14.8886, 12.4625, 48.0657)
Luminance0.1246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DBA #BA9D40
analogous
#409ABA #405DBA #6040BA
triadic
#405DBA #BA405D #5DBA40
tetradic
#405DBA #BA409A #BA9D40 #40BA60
square
#405DBA #BA409A #BA9D40 #40BA60
split-complementary
#405DBA #BA6040 #9ABA40
monochromatic
#212F5F #30468C #405DBA #6B82CC #99A9DC

Accessibility & contrast

On white

6.01
#405DBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#405DBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405DBA
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DBA#FFFFFF#000000##FFFFFF
##405DBA1.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2969BD
Deuteranopia (green-blind)
#045EB8
Tritanopia (blue-blind)
#007383
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #405dba;
/* rgb */ color: rgb(64, 93, 186);
/* oklch */ color: oklch(50.7% 0.150 267.7);
Tailwind
colors: {
  custom: {
    50: '#828acf',
    500: '#405dba',
    950: '#000000',
  },
}
SCSS
$custom: #405dba;
$custom-light: #828acf;
$custom-dark: #000000;
JSON
{
  "hex": "#405dba",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 186
  },
  "hsl": {
    "h": 225.738,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.50668,
    "c": 0.15029,
    "h": 267.7
  },
  "luminance": 0.12464
}

Semantic roles & 50–950 ramp

primary
#405DBA
secondary
#C8BA8E
accent
#B84FD8
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #405DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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