#404CC4#404CC4

#404CC4 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 48.2% C 0.185 H 272.9°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#404CC4
RGBrgb(64, 76, 196)
HSLhsl(235, 53%, 51%)
HSVhsv(235, 67%, 77%)
CMYKcmyk(67.3%, 61.2%, 0%, 23.1%)
CIE-LABlab(38.28, 34.20, -64.16)
CIE-LCHlch(38.28, 72.71, 298.06°)
OKLaboklab(48.15% 0.0093 -0.185)
OKLCHoklch(48.15% 0.185 272.9)
XYZxyz(14.6593, 10.2430, 53.4184)
Luminance0.1024 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404CC4 #C4B840
analogous
#408EC4 #404CC4 #7640C4
triadic
#404CC4 #C4404C #4CC440
tetradic
#404CC4 #C4408E #C4B840 #40C476
square
#404CC4 #C4408E #C4B840 #40C476
split-complementary
#404CC4 #C47640 #8EC440
monochromatic
#202769 #2F3898 #404CC4 #6F78D2 #9EA4E1

Accessibility & contrast

On white

6.89
#404CC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#404CC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #404CC4
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404CC4#FFFFFF#000000##FFFFFF
##404CC41.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C8
Deuteranopia (green-blind)
#0054C2
Tritanopia (blue-blind)
#006A81
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #404cc4;
/* rgb */ color: rgb(64, 76, 196);
/* oklch */ color: oklch(48.2% 0.185 272.9);
Tailwind
colors: {
  custom: {
    50: '#857ed7',
    500: '#404cc4',
    950: '#000000',
  },
}
SCSS
$custom: #404cc4;
$custom-light: #857ed7;
$custom-dark: #000000;
JSON
{
  "hex": "#404cc4",
  "rgb": {
    "r": 64,
    "g": 76,
    "b": 196
  },
  "hsl": {
    "h": 234.545,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.48151,
    "c": 0.18525,
    "h": 272.9
  },
  "luminance": 0.10244
}

Semantic roles & 50–950 ramp

primary
#404CC4
secondary
#CDC893
accent
#CF4CDC
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #404CC4

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

Preview Lab → · Contrast checker → · Palette generator →

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