#404BB7#404BB7

#404BB7 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.9% C 0.169 H 273.5°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#404BB7
RGBrgb(64, 75, 183)
HSLhsl(234, 48%, 48%)
HSVhsv(234, 65%, 72%)
CMYKcmyk(65%, 59%, 0%, 28.2%)
CIE-LABlab(37.00, 30.30, -58.62)
CIE-LCHlch(37.00, 65.99, 297.34°)
OKLaboklab(46.89% 0.0104 -0.1687)
OKLCHoklch(46.89% 0.169 273.5)
XYZxyz(13.1748, 9.5399, 45.9377)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404BB7 #B7AC40
analogous
#4086B7 #404BB7 #7040B7
triadic
#404BB7 #B7404B #4BB740
tetradic
#404BB7 #B74086 #B7AC40 #40B770
square
#404BB7 #B74086 #B7AC40 #40B770
split-complementary
#404BB7 #B77040 #86B740
monochromatic
#20265C #30388A #404BB7 #6972CB #979DDB

Accessibility & contrast

On white

7.22
#404BB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#404BB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404BB7
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404BB7#FFFFFF#000000##FFFFFF
##404BB71.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #404bb7;
/* rgb */ color: rgb(64, 75, 183);
/* oklch */ color: oklch(46.9% 0.169 273.5);
Tailwind
colors: {
  custom: {
    50: '#827dcd',
    500: '#404bb7',
    950: '#000000',
  },
}
SCSS
$custom: #404bb7;
$custom-light: #827dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#404bb7",
  "rgb": {
    "r": 64,
    "g": 75,
    "b": 183
  },
  "hsl": {
    "h": 234.454,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.4689,
    "c": 0.16905,
    "h": 273.5
  },
  "luminance": 0.09541
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #404BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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