#404DC2#404DC2

#404DC2 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.2% C 0.181 H 272.7°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#404DC2
RGBrgb(64, 77, 194)
HSLhsl(234, 52%, 51%)
HSVhsv(234, 67%, 76%)
CMYKcmyk(67%, 60.3%, 0%, 23.9%)
CIE-LABlab(38.36, 32.87, -62.86)
CIE-LCHlch(38.36, 70.93, 297.61°)
OKLaboklab(48.17% 0.0086 -0.1812)
OKLCHoklch(48.17% 0.181 272.7)
XYZxyz(14.5026, 10.2915, 52.2506)
Luminance0.1029 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404DC2 #C2B540
analogous
#408EC2 #404DC2 #7440C2
triadic
#404DC2 #C2404D #4DC240
tetradic
#404DC2 #C2408E #C2B540 #40C274
square
#404DC2 #C2408E #C2B540 #40C274
split-complementary
#404DC2 #C27440 #8EC240
monochromatic
#212867 #303A95 #404DC2 #6E78D1 #9DA3E0

Accessibility & contrast

On white

6.87
#404DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#404DC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #404DC2
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404DC2#FFFFFF#000000##FFFFFF
##404DC21.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #404dc2;
/* rgb */ color: rgb(64, 77, 194);
/* oklch */ color: oklch(48.2% 0.181 272.7);
Tailwind
colors: {
  custom: {
    50: '#847ed5',
    500: '#404dc2',
    950: '#000000',
  },
}
SCSS
$custom: #404dc2;
$custom-light: #847ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#404dc2",
  "rgb": {
    "r": 64,
    "g": 77,
    "b": 194
  },
  "hsl": {
    "h": 234,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.48165,
    "c": 0.18136,
    "h": 272.7
  },
  "luminance": 0.10293
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #404DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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