#404CC1#404CC1

#404CC1 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.9% C 0.181 H 273.0°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#404CC1
RGBrgb(64, 76, 193)
HSLhsl(234, 51%, 50%)
HSVhsv(234, 67%, 76%)
CMYKcmyk(66.8%, 60.6%, 0%, 24.3%)
CIE-LABlab(38.04, 33.15, -62.80)
CIE-LCHlch(38.04, 71.02, 297.83°)
OKLaboklab(47.9% 0.0094 -0.181)
OKLCHoklch(47.9% 0.181 273)
XYZxyz(14.3212, 10.1078, 51.6380)
Luminance0.1011 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404CC1 #C1B540
analogous
#408CC1 #404CC1 #7540C1
triadic
#404CC1 #C1404C #4CC140
tetradic
#404CC1 #C1408C #C1B540 #40C175
square
#404CC1 #C1408C #C1B540 #40C175
split-complementary
#404CC1 #C17540 #8CC140
monochromatic
#212766 #303994 #404CC1 #6E77D0 #9CA3DF

Accessibility & contrast

On white

6.95
#404CC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#404CC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #404CC1
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404CC1#FFFFFF#000000##FFFFFF
##404CC11.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC5
Deuteranopia (green-blind)
#0054BF
Tritanopia (blue-blind)
#00697F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #404cc1;
/* rgb */ color: rgb(64, 76, 193);
/* oklch */ color: oklch(47.9% 0.181 273.0);
Tailwind
colors: {
  custom: {
    50: '#847ed5',
    500: '#404cc1',
    950: '#000000',
  },
}
SCSS
$custom: #404cc1;
$custom-light: #847ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#404cc1",
  "rgb": {
    "r": 64,
    "g": 76,
    "b": 193
  },
  "hsl": {
    "h": 234.419,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.479,
    "c": 0.18126,
    "h": 273
  },
  "luminance": 0.10109
}

Semantic roles & 50–950 ramp

primary
#404CC1
secondary
#CBC692
accent
#CD4DDA
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #404CC1

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

Preview Lab → · Contrast checker → · Palette generator →

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