#404AC6#404AC6

#404AC6 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 48.0% C 0.190 H 273.3°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#404AC6
RGBrgb(64, 74, 198)
HSLhsl(236, 54%, 51%)
HSVhsv(236, 68%, 78%)
CMYKcmyk(67.7%, 62.6%, 0%, 22.4%)
CIE-LABlab(37.96, 36.14, -65.85)
CIE-LCHlch(37.96, 75.11, 298.76°)
OKLaboklab(47.97% 0.0108 -0.19)
OKLCHoklch(47.97% 0.19 273.3)
XYZxyz(14.7528, 10.0634, 54.5801)
Luminance0.1007 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404AC6 #C6BC40
analogous
#408DC6 #404AC6 #7940C6
triadic
#404AC6 #C6404A #4AC640
tetradic
#404AC6 #C6408D #C6BC40 #40C679
square
#404AC6 #C6408D #C6BC40 #40C679
split-complementary
#404AC6 #C67940 #8DC640
monochromatic
#20266C #2E369B #404AC6 #6F77D4 #9EA3E2

Accessibility & contrast

On white

6.97
#404AC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#404AC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #404AC6
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404AC6#FFFFFF#000000##FFFFFF
##404AC61.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CA
Deuteranopia (green-blind)
#0053C4
Tritanopia (blue-blind)
#006A81
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #404ac6;
/* rgb */ color: rgb(64, 74, 198);
/* oklch */ color: oklch(48.0% 0.190 273.3);
Tailwind
colors: {
  custom: {
    50: '#857cd8',
    500: '#404ac6',
    950: '#000000',
  },
}
SCSS
$custom: #404ac6;
$custom-light: #857cd8;
$custom-dark: #000000;
JSON
{
  "hex": "#404ac6",
  "rgb": {
    "r": 64,
    "g": 74,
    "b": 198
  },
  "hsl": {
    "h": 235.522,
    "s": 54.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.47967,
    "c": 0.19028,
    "h": 273.3
  },
  "luminance": 0.10065
}

Semantic roles & 50–950 ramp

primary
#404AC6
secondary
#CECA93
accent
#D24ADD
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0915
muted
#7D7B83

Preview Lab

Preview with #404AC6

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

Preview Lab → · Contrast checker → · Palette generator →

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