#404EC2#404EC2

#404EC2 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.3% C 0.180 H 272.5°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#404EC2
RGBrgb(64, 78, 194)
HSLhsl(234, 52%, 51%)
HSVhsv(234, 67%, 76%)
CMYKcmyk(67%, 59.8%, 0%, 23.9%)
CIE-LABlab(38.61, 32.24, -62.45)
CIE-LCHlch(38.61, 70.28, 297.30°)
OKLaboklab(48.35% 0.0078 -0.18)
OKLCHoklch(48.35% 0.18 272.5)
XYZxyz(14.5731, 10.4325, 52.2741)
Luminance0.1043 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404EC2 #C2B440
analogous
#408FC2 #404EC2 #7340C2
triadic
#404EC2 #C2404E #4EC240
tetradic
#404EC2 #C2408F #C2B440 #40C273
square
#404EC2 #C2408F #C2B440 #40C273
split-complementary
#404EC2 #C27340 #8FC240
monochromatic
#212867 #303B95 #404EC2 #6E79D1 #9DA4E0

Accessibility & contrast

On white

6.80
#404EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #404EC2
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404EC2#FFFFFF#000000##FFFFFF
##404EC21.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #404ec2;
/* rgb */ color: rgb(64, 78, 194);
/* oklch */ color: oklch(48.3% 0.180 272.5);
Tailwind
colors: {
  custom: {
    50: '#847fd5',
    500: '#404ec2',
    950: '#000000',
  },
}
SCSS
$custom: #404ec2;
$custom-light: #847fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#404ec2",
  "rgb": {
    "r": 64,
    "g": 78,
    "b": 194
  },
  "hsl": {
    "h": 233.538,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.48348,
    "c": 0.18014,
    "h": 272.5
  },
  "luminance": 0.10434
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #404EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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