#404AC1#404AC1

#404AC1 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.5% C 0.184 H 273.4°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#404AC1
RGBrgb(64, 74, 193)
HSLhsl(235, 51%, 50%)
HSVhsv(235, 67%, 76%)
CMYKcmyk(66.8%, 61.7%, 0%, 24.3%)
CIE-LABlab(37.55, 34.41, -63.60)
CIE-LCHlch(37.55, 72.31, 298.42°)
OKLaboklab(47.54% 0.011 -0.1834)
OKLCHoklch(47.54% 0.184 273.4)
XYZxyz(14.1856, 9.8365, 51.5928)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404AC1 #C1B740
analogous
#408AC1 #404AC1 #7640C1
triadic
#404AC1 #C1404A #4AC140
tetradic
#404AC1 #C1408A #C1B740 #40C176
square
#404AC1 #C1408A #C1B740 #40C176
split-complementary
#404AC1 #C17640 #8AC140
monochromatic
#212666 #303894 #404AC1 #6E76D0 #9CA2DF

Accessibility & contrast

On white

7.08
#404AC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#404AC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404AC1
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404AC1#FFFFFF#000000##FFFFFF
##404AC11.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC5
Deuteranopia (green-blind)
#0053BF
Tritanopia (blue-blind)
#00687E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #404ac1;
/* rgb */ color: rgb(64, 74, 193);
/* oklch */ color: oklch(47.5% 0.184 273.4);
Tailwind
colors: {
  custom: {
    50: '#847cd5',
    500: '#404ac1',
    950: '#000000',
  },
}
SCSS
$custom: #404ac1;
$custom-light: #847cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#404ac1",
  "rgb": {
    "r": 64,
    "g": 74,
    "b": 193
  },
  "hsl": {
    "h": 235.349,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.4754,
    "c": 0.1837,
    "h": 273.4
  },
  "luminance": 0.09838
}

Semantic roles & 50–950 ramp

primary
#404AC1
secondary
#CBC792
accent
#D04DDA
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0914
muted
#7D7B83

Preview Lab

Preview with #404AC1

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

Preview Lab → · Contrast checker → · Palette generator →

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