#404AAD#404AAD

#404AAD is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.9% C 0.157 H 274.1°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#404AAD
RGBrgb(64, 74, 173)
HSLhsl(234, 46%, 46%)
HSVhsv(234, 63%, 68%)
CMYKcmyk(63%, 57.2%, 0%, 32.2%)
CIE-LABlab(35.99, 27.45, -54.34)
CIE-LCHlch(35.99, 60.88, 296.80°)
OKLaboklab(45.9% 0.0112 -0.1562)
OKLCHoklch(45.9% 0.157 274.1)
XYZxyz(12.1035, 9.0037, 40.6271)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404AAD #ADA340
analogous
#4081AD #404AAD #6D40AD
triadic
#404AAD #AD404A #4AAD40
tetradic
#404AAD #AD4081 #ADA340 #40AD6D
square
#404AAD #AD4081 #ADA340 #40AD6D
split-complementary
#404AAD #AD6D40 #81AD40
monochromatic
#1F2454 #2F3780 #404AAD #646DC6 #9197D6

Accessibility & contrast

On white

7.50
#404AAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#404AAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404AAD
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404AAD#FFFFFF#000000##FFFFFF
##404AAD1.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB0
Deuteranopia (green-blind)
#0050AB
Tritanopia (blue-blind)
#006274
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #404aad;
/* rgb */ color: rgb(64, 74, 173);
/* oklch */ color: oklch(45.9% 0.157 274.1);
Tailwind
colors: {
  custom: {
    50: '#807cc6',
    500: '#404aad',
    950: '#000000',
  },
}
SCSS
$custom: #404aad;
$custom-light: #807cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#404aad",
  "rgb": {
    "r": 64,
    "g": 74,
    "b": 173
  },
  "hsl": {
    "h": 234.495,
    "s": 45.992,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45899,
    "c": 0.15657,
    "h": 274.1
  },
  "luminance": 0.09005
}

Semantic roles & 50–950 ramp

primary
#404AAD
secondary
#C2BC87
accent
#CA52D6
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #404AAD

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

Preview Lab → · Contrast checker → · Palette generator →

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