#404CCA#404CCA

#404CCA is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.7% C 0.193 H 272.7°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#404CCA
RGBrgb(64, 76, 202)
HSLhsl(235, 57%, 52%)
HSVhsv(235, 68%, 79%)
CMYKcmyk(68.3%, 62.4%, 0%, 20.8%)
CIE-LABlab(38.76, 36.27, -66.85)
CIE-LCHlch(38.76, 76.06, 298.48°)
OKLaboklab(48.66% 0.0091 -0.1929)
OKLCHoklch(48.66% 0.193 272.7)
XYZxyz(15.3559, 10.5217, 57.0873)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404CCA #CABE40
analogous
#4091CA #404CCA #7940CA
triadic
#404CCA #CA404C #4CCA40
tetradic
#404CCA #CA4091 #CABE40 #40CA79
square
#404CCA #CA4091 #CABE40 #40CA79
split-complementary
#404CCA #CA7940 #91CA40
monochromatic
#1F2670 #2C37A0 #404CCA #7079D7 #A0A6E5

Accessibility & contrast

On white

6.76
#404CCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#404CCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #404CCA
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404CCA#FFFFFF#000000##FFFFFF
##404CCA1.006.763.106.76
#FFFFFF6.761.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CE
Deuteranopia (green-blind)
#0055C8
Tritanopia (blue-blind)
#006C84
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #404cca;
/* rgb */ color: rgb(64, 76, 202);
/* oklch */ color: oklch(48.7% 0.193 272.7);
Tailwind
colors: {
  custom: {
    50: '#867edb',
    500: '#404cca',
    950: '#000000',
  },
}
SCSS
$custom: #404cca;
$custom-light: #867edb;
$custom-dark: #000000;
JSON
{
  "hex": "#404cca",
  "rgb": {
    "r": 64,
    "g": 76,
    "b": 202
  },
  "hsl": {
    "h": 234.783,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48662,
    "c": 0.19311,
    "h": 272.7
  },
  "luminance": 0.10523
}

Semantic roles & 50–950 ramp

primary
#404CCA
secondary
#D1CC95
accent
#D348E0
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0D0A15
muted
#7D7C83

Preview Lab

Preview with #404CCA

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

Preview Lab → · Contrast checker → · Palette generator →

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