#404AB7#404AB7

#404AB7 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.7% C 0.170 H 273.8°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#404AB7
RGBrgb(64, 74, 183)
HSLhsl(235, 48%, 48%)
HSVhsv(235, 65%, 72%)
CMYKcmyk(65%, 59.6%, 0%, 28.2%)
CIE-LABlab(36.75, 30.94, -59.02)
CIE-LCHlch(36.75, 66.64, 297.66°)
OKLaboklab(46.71% 0.0113 -0.1699)
OKLCHoklch(46.71% 0.17 273.8)
XYZxyz(13.1075, 9.4053, 45.9152)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404AB7 #B7AD40
analogous
#4085B7 #404AB7 #7140B7
triadic
#404AB7 #B7404A #4AB740
tetradic
#404AB7 #B74085 #B7AD40 #40B771
square
#404AB7 #B74085 #B7AD40 #40B771
split-complementary
#404AB7 #B77140 #85B740
monochromatic
#20255C #30388A #404AB7 #6972CB #979DDB

Accessibility & contrast

On white

7.29
#404AB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#404AB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404AB7
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404AB7#FFFFFF#000000##FFFFFF
##404AB71.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBB
Deuteranopia (green-blind)
#0051B5
Tritanopia (blue-blind)
#006579
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #404ab7;
/* rgb */ color: rgb(64, 74, 183);
/* oklch */ color: oklch(46.7% 0.170 273.8);
Tailwind
colors: {
  custom: {
    50: '#827ccd',
    500: '#404ab7',
    950: '#000000',
  },
}
SCSS
$custom: #404ab7;
$custom-light: #827ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#404ab7",
  "rgb": {
    "r": 64,
    "g": 74,
    "b": 183
  },
  "hsl": {
    "h": 234.958,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.46705,
    "c": 0.1703,
    "h": 273.8
  },
  "luminance": 0.09406
}

Semantic roles & 50–950 ramp

primary
#404AB7
secondary
#C6C18D
accent
#CC50D8
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0914
muted
#7D7B82

Preview Lab

Preview with #404AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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