#404EB7#404EB7

#404EB7 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.5% C 0.165 H 272.7°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#404EB7
RGBrgb(64, 78, 183)
HSLhsl(233, 48%, 48%)
HSVhsv(233, 65%, 72%)
CMYKcmyk(65%, 57.4%, 0%, 28.2%)
CIE-LABlab(37.76, 28.38, -57.38)
CIE-LCHlch(37.76, 64.02, 296.32°)
OKLaboklab(47.46% 0.0077 -0.1651)
OKLCHoklch(47.46% 0.165 272.7)
XYZxyz(13.3831, 9.9565, 46.0071)
Luminance0.0996 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404EB7 #B7A940
analogous
#4089B7 #404EB7 #6D40B7
triadic
#404EB7 #B7404E #4EB740
tetradic
#404EB7 #B74089 #B7A940 #40B76D
square
#404EB7 #B74089 #B7A940 #40B76D
split-complementary
#404EB7 #B76D40 #89B740
monochromatic
#20275C #303B8A #404EB7 #6975CB #979FDB

Accessibility & contrast

On white

7.02
#404EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#404EB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404EB7
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404EB7#FFFFFF#000000##FFFFFF
##404EB71.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBB
Deuteranopia (green-blind)
#0054B5
Tritanopia (blue-blind)
#00677B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #404eb7;
/* rgb */ color: rgb(64, 78, 183);
/* oklch */ color: oklch(47.5% 0.165 272.7);
Tailwind
colors: {
  custom: {
    50: '#827fcd',
    500: '#404eb7',
    950: '#000000',
  },
}
SCSS
$custom: #404eb7;
$custom-light: #827fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#404eb7",
  "rgb": {
    "r": 64,
    "g": 78,
    "b": 183
  },
  "hsl": {
    "h": 232.941,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.47456,
    "c": 0.16524,
    "h": 272.7
  },
  "luminance": 0.09958
}

Semantic roles & 50–950 ramp

primary
#404EB7
secondary
#C6BF8D
accent
#C850D8
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A14
muted
#7D7C82

Preview Lab

Preview with #404EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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