#404CE5#404CE5

#404CE5 is a mid, highly saturated blue. Relative luminance 0.119; OKLCH L 51.1% C 0.227 H 271.8°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#404CE5
RGBrgb(64, 76, 229)
HSLhsl(236, 76%, 57%)
HSVhsv(236, 72%, 90%)
CMYKcmyk(72.1%, 66.8%, 0%, 10.2%)
CIE-LABlab(41.08, 45.48, -78.55)
CIE-LCHlch(41.08, 90.77, 300.07°)
OKLaboklab(51.07% 0.0072 -0.2271)
OKLCHoklch(51.07% 0.227 271.8)
XYZxyz(18.8369, 11.9141, 75.4205)
Luminance0.1192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404CE5 #E5D940
analogous
#409FE5 #404CE5 #8640E5
triadic
#404CE5 #E5404C #4CE540
tetradic
#404CE5 #E5409F #E5D940 #40E586
square
#404CE5 #E5409F #E5D940 #40E586
split-complementary
#404CE5 #E58640 #9FE540
monochromatic
#141E96 #1C29CC #404CE5 #767EEC #ACB1F4

Accessibility & contrast

On white

6.21
#404CE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#404CE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #404CE5
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404CE5#FFFFFF#000000##FFFFFF
##404CE51.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069EA
Deuteranopia (green-blind)
#0059E2
Tritanopia (blue-blind)
#007592
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #404ce5;
/* rgb */ color: rgb(64, 76, 229);
/* oklch */ color: oklch(51.1% 0.227 271.8);
Tailwind
colors: {
  custom: {
    50: '#8c7eee',
    500: '#404ce5',
    950: '#000000',
  },
}
SCSS
$custom: #404ce5;
$custom-light: #8c7eee;
$custom-dark: #000000;
JSON
{
  "hex": "#404ce5",
  "rgb": {
    "r": 64,
    "g": 76,
    "b": 229
  },
  "hsl": {
    "h": 235.636,
    "s": 76.037,
    "l": 57.451
  },
  "oklch": {
    "l": 0.51065,
    "c": 0.22726,
    "h": 271.8
  },
  "luminance": 0.11916
}

Semantic roles & 50–950 ramp

primary
#404CE5
secondary
#E2DD9F
accent
#E535F3
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0A17
muted
#7E7C85

Preview Lab

Preview with #404CE5

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

Preview Lab → · Contrast checker → · Palette generator →

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