#404BB5#404BB5

#404BB5 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.7% C 0.166 H 273.6°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#404BB5
RGBrgb(64, 75, 181)
HSLhsl(234, 48%, 48%)
HSVhsv(234, 65%, 71%)
CMYKcmyk(64.6%, 58.6%, 0%, 29%)
CIE-LABlab(36.85, 29.60, -57.69)
CIE-LCHlch(36.85, 64.84, 297.17°)
OKLaboklab(46.73% 0.0104 -0.166)
OKLCHoklch(46.73% 0.166 273.6)
XYZxyz(12.9682, 9.4572, 44.8491)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404BB5 #B5AA40
analogous
#4085B5 #404BB5 #6F40B5
triadic
#404BB5 #B5404B #4BB540
tetradic
#404BB5 #B54085 #B5AA40 #40B56F
square
#404BB5 #B54085 #B5AA40 #40B56F
split-complementary
#404BB5 #B56F40 #85B540
monochromatic
#20265B #303888 #404BB5 #6872CA #969CDA

Accessibility & contrast

On white

7.26
#404BB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#404BB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404BB5
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404BB5#FFFFFF#000000##FFFFFF
##404BB51.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB9
Deuteranopia (green-blind)
#0052B3
Tritanopia (blue-blind)
#006578
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #404bb5;
/* rgb */ color: rgb(64, 75, 181);
/* oklch */ color: oklch(46.7% 0.166 273.6);
Tailwind
colors: {
  custom: {
    50: '#827dcc',
    500: '#404bb5',
    950: '#000000',
  },
}
SCSS
$custom: #404bb5;
$custom-light: #827dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#404bb5",
  "rgb": {
    "r": 64,
    "g": 75,
    "b": 181
  },
  "hsl": {
    "h": 234.359,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.46728,
    "c": 0.16632,
    "h": 273.6
  },
  "luminance": 0.09458
}

Semantic roles & 50–950 ramp

primary
#404BB5
secondary
#C5C08B
accent
#CB50D7
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #404BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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