#404DA7#404DA7

#404DA7 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.0% C 0.144 H 273.2°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#404DA7
RGBrgb(64, 77, 167)
HSLhsl(232, 45%, 45%)
HSVhsv(232, 62%, 65%)
CMYKcmyk(61.7%, 53.9%, 0%, 34.5%)
CIE-LABlab(36.34, 23.41, -50.20)
CIE-LCHlch(36.34, 55.39, 295.00°)
OKLaboklab(46.02% 0.008 -0.144)
OKLCHoklch(46.02% 0.144 273.2)
XYZxyz(11.7410, 9.1868, 37.7062)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404DA7 #A79A40
analogous
#4081A7 #404DA7 #6640A7
triadic
#404DA7 #A7404D #4DA740
tetradic
#404DA7 #A74081 #A79A40 #40A766
square
#404DA7 #A74081 #A79A40 #40A766
split-complementary
#404DA7 #A76640 #81A740
monochromatic
#1E244F #2F397B #404DA7 #626EC3 #8E97D4

Accessibility & contrast

On white

7.40
#404DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#404DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404DA7
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404DA7#FFFFFF#000000##FFFFFF
##404DA71.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#145AAA
Deuteranopia (green-blind)
#0051A5
Tritanopia (blue-blind)
#006272
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #404da7;
/* rgb */ color: rgb(64, 77, 167);
/* oklch */ color: oklch(46.0% 0.144 273.2);
Tailwind
colors: {
  custom: {
    50: '#7f7ec2',
    500: '#404da7',
    950: '#000000',
  },
}
SCSS
$custom: #404da7;
$custom-light: #7f7ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#404da7",
  "rgb": {
    "r": 64,
    "g": 77,
    "b": 167
  },
  "hsl": {
    "h": 232.427,
    "s": 44.589,
    "l": 45.294
  },
  "oklch": {
    "l": 0.46023,
    "c": 0.14418,
    "h": 273.2
  },
  "luminance": 0.09188
}

Semantic roles & 50–950 ramp

primary
#404DA7
secondary
#BFB784
accent
#C454D4
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A12
muted
#7C7C81

Preview Lab

Preview with #404DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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