#405FBA#405FBA

#405FBA is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.1% C 0.148 H 267.0°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#405FBA
RGBrgb(64, 95, 186)
HSLhsl(225, 49%, 49%)
HSVhsv(225, 66%, 73%)
CMYKcmyk(65.6%, 48.9%, 0%, 27.1%)
CIE-LABlab(42.49, 18.50, -51.51)
CIE-LCHlch(42.49, 54.73, 289.75°)
OKLaboklab(51.08% -0.0079 -0.1475)
OKLCHoklch(51.08% 0.148 267)
XYZxyz(15.0664, 12.8182, 48.1250)
Luminance0.1282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FBA #BA9B40
analogous
#409CBA #405FBA #5E40BA
triadic
#405FBA #BA405F #5FBA40
tetradic
#405FBA #BA409C #BA9B40 #40BA5E
square
#405FBA #BA409C #BA9B40 #40BA5E
split-complementary
#405FBA #BA5E40 #9CBA40
monochromatic
#21305F #30488C #405FBA #6B84CC #99AADC

Accessibility & contrast

On white

5.89
#405FBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#405FBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FBA
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FBA#FFFFFF#000000##FFFFFF
##405FBA1.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E6ABD
Deuteranopia (green-blind)
#105FB8
Tritanopia (blue-blind)
#007483
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #405fba;
/* rgb */ color: rgb(64, 95, 186);
/* oklch */ color: oklch(51.1% 0.148 267.0);
Tailwind
colors: {
  custom: {
    50: '#828ccf',
    500: '#405fba',
    950: '#000000',
  },
}
SCSS
$custom: #405fba;
$custom-light: #828ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#405fba",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 186
  },
  "hsl": {
    "h": 224.754,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.51084,
    "c": 0.14776,
    "h": 267
  },
  "luminance": 0.1282
}

Semantic roles & 50–950 ramp

primary
#405FBA
secondary
#C8B98E
accent
#B64FD8
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #405FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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