#404AC4#404AC4

#404AC4 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.8% C 0.188 H 273.3°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#404AC4
RGBrgb(64, 74, 196)
HSLhsl(235, 53%, 51%)
HSVhsv(235, 67%, 77%)
CMYKcmyk(67.3%, 62.2%, 0%, 23.1%)
CIE-LABlab(37.79, 35.45, -64.95)
CIE-LCHlch(37.79, 74.00, 298.63°)
OKLaboklab(47.8% 0.0109 -0.1873)
OKLCHoklch(47.8% 0.188 273.3)
XYZxyz(14.5236, 9.9717, 53.3732)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404AC4 #C4BA40
analogous
#408CC4 #404AC4 #7840C4
triadic
#404AC4 #C4404A #4AC440
tetradic
#404AC4 #C4408C #C4BA40 #40C478
square
#404AC4 #C4408C #C4BA40 #40C478
split-complementary
#404AC4 #C47840 #8CC440
monochromatic
#202669 #2F3798 #404AC4 #6F76D2 #9EA3E1

Accessibility & contrast

On white

7.01
#404AC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#404AC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404AC4
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404AC4#FFFFFF#000000##FFFFFF
##404AC41.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC8
Deuteranopia (green-blind)
#0053C2
Tritanopia (blue-blind)
#006980
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #404ac4;
/* rgb */ color: rgb(64, 74, 196);
/* oklch */ color: oklch(47.8% 0.188 273.3);
Tailwind
colors: {
  custom: {
    50: '#857cd7',
    500: '#404ac4',
    950: '#000000',
  },
}
SCSS
$custom: #404ac4;
$custom-light: #857cd7;
$custom-dark: #000000;
JSON
{
  "hex": "#404ac4",
  "rgb": {
    "r": 64,
    "g": 74,
    "b": 196
  },
  "hsl": {
    "h": 235.455,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.47795,
    "c": 0.18766,
    "h": 273.3
  },
  "luminance": 0.09973
}

Semantic roles & 50–950 ramp

primary
#404AC4
secondary
#CDC993
accent
#D14CDC
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0914
muted
#7D7B83

Preview Lab

Preview with #404AC4

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

Preview Lab → · Contrast checker → · Palette generator →

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