#404AC7#404AC7

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

Color values

HEX#404AC7
RGBrgb(64, 74, 199)
HSLhsl(236, 55%, 52%)
HSVhsv(236, 68%, 78%)
CMYKcmyk(67.8%, 62.8%, 0%, 22%)
CIE-LABlab(38.04, 36.48, -66.29)
CIE-LCHlch(38.04, 75.67, 298.83°)
OKLaboklab(48.05% 0.0108 -0.1913)
OKLCHoklch(48.05% 0.192 273.2)
XYZxyz(14.8685, 10.1097, 55.1896)
Luminance0.1011 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404AC7 #C7BD40
analogous
#408DC7 #404AC7 #7A40C7
triadic
#404AC7 #C7404A #4AC740
tetradic
#404AC7 #C7408D #C7BD40 #40C77A
square
#404AC7 #C7408D #C7BD40 #40C77A
split-complementary
#404AC7 #C77A40 #8DC740
monochromatic
#20266D #2E369C #404AC7 #6F77D5 #9FA4E3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##404AC7#FFFFFF#000000##FFFFFF
##404AC71.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)
#0060CB
Deuteranopia (green-blind)
#0053C5
Tritanopia (blue-blind)
#006A81
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #404ac7;
/* rgb */ color: rgb(64, 74, 199);
/* oklch */ color: oklch(48.1% 0.192 273.2);
Tailwind
colors: {
  custom: {
    50: '#857cd9',
    500: '#404ac7',
    950: '#000000',
  },
}
SCSS
$custom: #404ac7;
$custom-light: #857cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#404ac7",
  "rgb": {
    "r": 64,
    "g": 74,
    "b": 199
  },
  "hsl": {
    "h": 235.556,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48053,
    "c": 0.19158,
    "h": 273.2
  },
  "luminance": 0.10111
}

Semantic roles & 50–950 ramp

primary
#404AC7
secondary
#CFCB94
accent
#D34ADE
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0915
muted
#7D7B83

Preview Lab

Preview with #404AC7

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

Preview Lab → · Contrast checker → · Palette generator →

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