#404CA5#404CA5

#404CA5 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.7% C 0.143 H 273.6°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#404CA5
RGBrgb(64, 76, 165)
HSLhsl(233, 44%, 45%)
HSVhsv(233, 61%, 65%)
CMYKcmyk(61.2%, 53.9%, 0%, 35.3%)
CIE-LABlab(35.94, 23.35, -49.66)
CIE-LCHlch(35.94, 54.88, 295.19°)
OKLaboklab(45.67% 0.0089 -0.1424)
OKLCHoklch(45.67% 0.143 273.6)
XYZxyz(11.4881, 8.9746, 36.7169)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404CA5 #A59940
analogous
#407FA5 #404CA5 #6640A5
triadic
#404CA5 #A5404C #4CA540
tetradic
#404CA5 #A5407F #A59940 #40A566
square
#404CA5 #A5407F #A59940 #40A566
split-complementary
#404CA5 #A56640 #7FA540
monochromatic
#1E234D #2F3879 #404CA5 #616CC2 #8D95D3

Accessibility & contrast

On white

7.51
#404CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#404CA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404CA5
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404CA5#FFFFFF#000000##FFFFFF
##404CA51.007.512.797.51
#FFFFFF7.511.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1459A8
Deuteranopia (green-blind)
#0050A3
Tritanopia (blue-blind)
#006171
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #404ca5;
/* rgb */ color: rgb(64, 76, 165);
/* oklch */ color: oklch(45.7% 0.143 273.6);
Tailwind
colors: {
  custom: {
    50: '#7f7dc0',
    500: '#404ca5',
    950: '#000000',
  },
}
SCSS
$custom: #404ca5;
$custom-light: #7f7dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#404ca5",
  "rgb": {
    "r": 64,
    "g": 76,
    "b": 165
  },
  "hsl": {
    "h": 232.871,
    "s": 44.105,
    "l": 44.902
  },
  "oklch": {
    "l": 0.45673,
    "c": 0.14266,
    "h": 273.6
  },
  "luminance": 0.08975
}

Semantic roles & 50–950 ramp

primary
#404CA5
secondary
#BEB783
accent
#C554D4
background
#F8F7FB
surface
#EFEEF7
border
#CAC9D0
text
#0B0912
muted
#7C7B81

Preview Lab

Preview with #404CA5

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

Preview Lab → · Contrast checker → · Palette generator →

#404CA5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva