#404CC8#404CC8

#404CC8 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.5% C 0.191 H 272.8°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#404CC8
RGBrgb(64, 76, 200)
HSLhsl(235, 55%, 52%)
HSVhsv(235, 68%, 78%)
CMYKcmyk(68%, 62%, 0%, 21.6%)
CIE-LABlab(38.60, 35.58, -65.96)
CIE-LCHlch(38.60, 74.94, 298.35°)
OKLaboklab(48.49% 0.0092 -0.1903)
OKLCHoklch(48.49% 0.191 272.8)
XYZxyz(15.1206, 10.4276, 55.8483)
Luminance0.1043 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404CC8 #C8BC40
analogous
#4090C8 #404CC8 #7840C8
triadic
#404CC8 #C8404C #4CC840
tetradic
#404CC8 #C84090 #C8BC40 #40C878
square
#404CC8 #C84090 #C8BC40 #40C878
split-complementary
#404CC8 #C87840 #90C840
monochromatic
#20276E #2D379D #404CC8 #7079D6 #9FA5E3

Accessibility & contrast

On white

6.81
#404CC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#404CC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #404CC8
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404CC8#FFFFFF#000000##FFFFFF
##404CC81.006.813.096.81
#FFFFFF6.811.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CC
Deuteranopia (green-blind)
#0055C6
Tritanopia (blue-blind)
#006C83
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #404cc8;
/* rgb */ color: rgb(64, 76, 200);
/* oklch */ color: oklch(48.5% 0.191 272.8);
Tailwind
colors: {
  custom: {
    50: '#857eda',
    500: '#404cc8',
    950: '#000000',
  },
}
SCSS
$custom: #404cc8;
$custom-light: #857eda;
$custom-dark: #000000;
JSON
{
  "hex": "#404cc8",
  "rgb": {
    "r": 64,
    "g": 76,
    "b": 200
  },
  "hsl": {
    "h": 234.706,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.48491,
    "c": 0.1905,
    "h": 272.8
  },
  "luminance": 0.10429
}

Semantic roles & 50–950 ramp

primary
#404CC8
secondary
#D0CA94
accent
#D149DF
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #404CC8

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

Preview Lab → · Contrast checker → · Palette generator →

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