#404CB7#404CB7

#404CB7 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 47.1% C 0.168 H 273.3°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#404CB7
RGBrgb(64, 76, 183)
HSLhsl(234, 48%, 48%)
HSVhsv(234, 65%, 72%)
CMYKcmyk(65%, 58.5%, 0%, 28.2%)
CIE-LABlab(37.26, 29.66, -58.21)
CIE-LCHlch(37.26, 65.33, 297.00°)
OKLaboklab(47.08% 0.0095 -0.1675)
OKLCHoklch(47.08% 0.168 273.3)
XYZxyz(13.2432, 9.6766, 45.9604)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404CB7 #B7AB40
analogous
#4087B7 #404CB7 #7040B7
triadic
#404CB7 #B7404C #4CB740
tetradic
#404CB7 #B74087 #B7AB40 #40B770
square
#404CB7 #B74087 #B7AB40 #40B770
split-complementary
#404CB7 #B77040 #87B740
monochromatic
#20265C #30398A #404CB7 #6973CB #979EDB

Accessibility & contrast

On white

7.15
#404CB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#404CB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404CB7
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404CB7#FFFFFF#000000##FFFFFF
##404CB71.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBB
Deuteranopia (green-blind)
#0052B5
Tritanopia (blue-blind)
#00667A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #404cb7;
/* rgb */ color: rgb(64, 76, 183);
/* oklch */ color: oklch(47.1% 0.168 273.3);
Tailwind
colors: {
  custom: {
    50: '#827ecd',
    500: '#404cb7',
    950: '#000000',
  },
}
SCSS
$custom: #404cb7;
$custom-light: #827ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#404cb7",
  "rgb": {
    "r": 64,
    "g": 76,
    "b": 183
  },
  "hsl": {
    "h": 233.95,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.47078,
    "c": 0.16778,
    "h": 273.3
  },
  "luminance": 0.09678
}

Semantic roles & 50–950 ramp

primary
#404CB7
secondary
#C6C08D
accent
#CA50D8
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0914
muted
#7D7B82

Preview Lab

Preview with #404CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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