#404CA4#404CA4

#404CA4 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.6% C 0.141 H 273.6°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#404CA4
RGBrgb(64, 76, 164)
HSLhsl(233, 44%, 45%)
HSVhsv(233, 61%, 64%)
CMYKcmyk(61%, 53.7%, 0%, 35.7%)
CIE-LABlab(35.87, 23.00, -49.18)
CIE-LCHlch(35.87, 54.29, 295.07°)
OKLaboklab(45.6% 0.0089 -0.141)
OKLCHoklch(45.6% 0.141 273.6)
XYZxyz(11.3974, 8.9383, 36.2394)
Luminance0.0894 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404CA4 #A49840
analogous
#407EA4 #404CA4 #6640A4
triadic
#404CA4 #A4404C #4CA440
tetradic
#404CA4 #A4407E #A49840 #40A466
square
#404CA4 #A4407E #A49840 #40A466
split-complementary
#404CA4 #A46640 #7EA440
monochromatic
#1E234C #2F3878 #404CA4 #606CC1 #8C95D2

Accessibility & contrast

On white

7.53
#404CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #404CA4
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404CA4#FFFFFF#000000##FFFFFF
##404CA41.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1659A7
Deuteranopia (green-blind)
#0050A2
Tritanopia (blue-blind)
#006070
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #404ca4;
/* rgb */ color: rgb(64, 76, 164);
/* oklch */ color: oklch(45.6% 0.141 273.6);
Tailwind
colors: {
  custom: {
    50: '#7f7dc0',
    500: '#404ca4',
    950: '#000000',
  },
}
SCSS
$custom: #404ca4;
$custom-light: #7f7dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#404ca4",
  "rgb": {
    "r": 64,
    "g": 76,
    "b": 164
  },
  "hsl": {
    "h": 232.8,
    "s": 43.86,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45598,
    "c": 0.14124,
    "h": 273.6
  },
  "luminance": 0.08939
}

Semantic roles & 50–950 ramp

primary
#404CA4
secondary
#BDB683
accent
#C454D4
background
#F8F7FB
surface
#EFEEF7
border
#CAC9D0
text
#0B0912
muted
#7C7B81

Preview Lab

Preview with #404CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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