#404BA5#404BA5

#404BA5 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.5% C 0.144 H 274.0°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#404BA5
RGBrgb(64, 75, 165)
HSLhsl(233, 44%, 45%)
HSVhsv(233, 61%, 65%)
CMYKcmyk(61.2%, 54.5%, 0%, 35.3%)
CIE-LABlab(35.67, 24.01, -50.09)
CIE-LCHlch(35.67, 55.55, 295.60°)
OKLaboklab(45.47% 0.0099 -0.1436)
OKLCHoklch(45.47% 0.144 274)
XYZxyz(11.4197, 8.8379, 36.6941)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404BA5 #A59A40
analogous
#407EA5 #404BA5 #6740A5
triadic
#404BA5 #A5404B #4BA540
tetradic
#404BA5 #A5407E #A59A40 #40A567
square
#404BA5 #A5407E #A59A40 #40A567
split-complementary
#404BA5 #A56740 #7EA540
monochromatic
#1E234D #2F3779 #404BA5 #616BC2 #8D94D3

Accessibility & contrast

On white

7.59
#404BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#404BA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404BA5
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404BA5#FFFFFF#000000##FFFFFF
##404BA51.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F58A8
Deuteranopia (green-blind)
#0050A3
Tritanopia (blue-blind)
#006070
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #404ba5;
/* rgb */ color: rgb(64, 75, 165);
/* oklch */ color: oklch(45.5% 0.144 274.0);
Tailwind
colors: {
  custom: {
    50: '#7f7dc0',
    500: '#404ba5',
    950: '#000000',
  },
}
SCSS
$custom: #404ba5;
$custom-light: #7f7dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#404ba5",
  "rgb": {
    "r": 64,
    "g": 75,
    "b": 165
  },
  "hsl": {
    "h": 233.465,
    "s": 44.105,
    "l": 44.902
  },
  "oklch": {
    "l": 0.45474,
    "c": 0.14399,
    "h": 274
  },
  "luminance": 0.08839
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #404BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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