#404ACC#404ACC

#404ACC is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.5% C 0.198 H 273.0°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#404ACC
RGBrgb(64, 74, 204)
HSLhsl(236, 58%, 53%)
HSVhsv(236, 69%, 80%)
CMYKcmyk(68.6%, 63.7%, 0%, 20%)
CIE-LABlab(38.46, 38.20, -68.51)
CIE-LCHlch(38.46, 78.44, 299.14°)
OKLaboklab(48.49% 0.0105 -0.1978)
OKLCHoklch(48.49% 0.198 273)
XYZxyz(15.4586, 10.3457, 58.2973)
Luminance0.1035 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404ACC #CCC240
analogous
#4090CC #404ACC #7C40CC
triadic
#404ACC #CC404A #4ACC40
tetradic
#404ACC #CC4090 #CCC240 #40CC7C
square
#404ACC #CC4090 #CCC240 #40CC7C
split-complementary
#404ACC #CC7C40 #90CC40
monochromatic
#1F2573 #2C34A3 #404ACC #7078D9 #A1A6E6

Accessibility & contrast

On white

6.84
#404ACC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#404ACC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #404ACC
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404ACC#FFFFFF#000000##FFFFFF
##404ACC1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D0
Deuteranopia (green-blind)
#0054CA
Tritanopia (blue-blind)
#006C84
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #404acc;
/* rgb */ color: rgb(64, 74, 204);
/* oklch */ color: oklch(48.5% 0.198 273.0);
Tailwind
colors: {
  custom: {
    50: '#867cdd',
    500: '#404acc',
    950: '#000000',
  },
}
SCSS
$custom: #404acc;
$custom-light: #867cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#404acc",
  "rgb": {
    "r": 64,
    "g": 74,
    "b": 204
  },
  "hsl": {
    "h": 235.714,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.48489,
    "c": 0.19807,
    "h": 273
  },
  "luminance": 0.10347
}

Semantic roles & 50–950 ramp

primary
#404ACC
secondary
#D2CE95
accent
#D647E1
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #404ACC

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

Preview Lab → · Contrast checker → · Palette generator →

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