#404CC2#404CC2

#404CC2 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 48.0% C 0.183 H 273.0°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#404CC2
RGBrgb(64, 76, 194)
HSLhsl(234, 52%, 51%)
HSVhsv(234, 67%, 76%)
CMYKcmyk(67%, 60.8%, 0%, 23.9%)
CIE-LABlab(38.11, 33.50, -63.26)
CIE-LCHlch(38.11, 71.58, 297.90°)
OKLaboklab(47.98% 0.0094 -0.1824)
OKLCHoklch(47.98% 0.183 273)
XYZxyz(14.4331, 10.1526, 52.2275)
Luminance0.1015 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404CC2 #C2B640
analogous
#408DC2 #404CC2 #7540C2
triadic
#404CC2 #C2404C #4CC240
tetradic
#404CC2 #C2408D #C2B640 #40C275
square
#404CC2 #C2408D #C2B640 #40C275
split-complementary
#404CC2 #C27540 #8DC240
monochromatic
#212767 #303995 #404CC2 #6E77D1 #9DA3E0

Accessibility & contrast

On white

6.93
#404CC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#404CC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #404CC2
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404CC2#FFFFFF#000000##FFFFFF
##404CC21.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C6
Deuteranopia (green-blind)
#0054C0
Tritanopia (blue-blind)
#006A80
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #404cc2;
/* rgb */ color: rgb(64, 76, 194);
/* oklch */ color: oklch(48.0% 0.183 273.0);
Tailwind
colors: {
  custom: {
    50: '#847ed5',
    500: '#404cc2',
    950: '#000000',
  },
}
SCSS
$custom: #404cc2;
$custom-light: #847ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#404cc2",
  "rgb": {
    "r": 64,
    "g": 76,
    "b": 194
  },
  "hsl": {
    "h": 234.462,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47983,
    "c": 0.18259,
    "h": 273
  },
  "luminance": 0.10154
}

Semantic roles & 50–950 ramp

primary
#404CC2
secondary
#CCC692
accent
#CE4DDB
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #404CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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