#404EC1#404EC1

#404EC1 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.3% C 0.179 H 272.5°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#404EC1
RGBrgb(64, 78, 193)
HSLhsl(233, 51%, 50%)
HSVhsv(233, 67%, 76%)
CMYKcmyk(66.8%, 59.6%, 0%, 24.3%)
CIE-LABlab(38.53, 31.89, -62.00)
CIE-LCHlch(38.53, 69.72, 297.22°)
OKLaboklab(48.27% 0.0078 -0.1786)
OKLCHoklch(48.27% 0.179 272.5)
XYZxyz(14.4612, 10.3877, 51.6847)
Luminance0.1039 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404EC1 #C1B340
analogous
#408FC1 #404EC1 #7240C1
triadic
#404EC1 #C1404E #4EC140
tetradic
#404EC1 #C1408F #C1B340 #40C172
square
#404EC1 #C1408F #C1B340 #40C172
split-complementary
#404EC1 #C17240 #8FC140
monochromatic
#212866 #303B94 #404EC1 #6E79D0 #9CA4DF

Accessibility & contrast

On white

6.82
#404EC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#404EC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #404EC1
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404EC1#FFFFFF#000000##FFFFFF
##404EC11.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C5
Deuteranopia (green-blind)
#0055BF
Tritanopia (blue-blind)
#006B80
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #404ec1;
/* rgb */ color: rgb(64, 78, 193);
/* oklch */ color: oklch(48.3% 0.179 272.5);
Tailwind
colors: {
  custom: {
    50: '#847fd5',
    500: '#404ec1',
    950: '#000000',
  },
}
SCSS
$custom: #404ec1;
$custom-light: #847fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#404ec1",
  "rgb": {
    "r": 64,
    "g": 78,
    "b": 193
  },
  "hsl": {
    "h": 233.488,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.48265,
    "c": 0.1788,
    "h": 272.5
  },
  "luminance": 0.10389
}

Semantic roles & 50–950 ramp

primary
#404EC1
secondary
#CBC592
accent
#CB4DDA
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #404EC1

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

Preview Lab → · Contrast checker → · Palette generator →

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