#404FC2#404FC2

#404FC2 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.5% C 0.179 H 272.2°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#404FC2
RGBrgb(64, 79, 194)
HSLhsl(233, 52%, 51%)
HSVhsv(233, 67%, 76%)
CMYKcmyk(67%, 59.3%, 0%, 23.9%)
CIE-LABlab(38.86, 31.60, -62.05)
CIE-LCHlch(38.86, 69.63, 296.99°)
OKLaboklab(48.53% 0.007 -0.1788)
OKLCHoklch(48.53% 0.179 272.2)
XYZxyz(14.6447, 10.5756, 52.2980)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404FC2 #C2B340
analogous
#4090C2 #404FC2 #7240C2
triadic
#404FC2 #C2404F #4FC240
tetradic
#404FC2 #C24090 #C2B340 #40C272
square
#404FC2 #C24090 #C2B340 #40C272
split-complementary
#404FC2 #C27240 #90C240
monochromatic
#212967 #303B95 #404FC2 #6E7AD1 #9DA4E0

Accessibility & contrast

On white

6.74
#404FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#404FC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #404FC2
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404FC2#FFFFFF#000000##FFFFFF
##404FC21.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C6
Deuteranopia (green-blind)
#0056C0
Tritanopia (blue-blind)
#006B81
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #404fc2;
/* rgb */ color: rgb(64, 79, 194);
/* oklch */ color: oklch(48.5% 0.179 272.2);
Tailwind
colors: {
  custom: {
    50: '#8480d5',
    500: '#404fc2',
    950: '#000000',
  },
}
SCSS
$custom: #404fc2;
$custom-light: #8480d5;
$custom-dark: #000000;
JSON
{
  "hex": "#404fc2",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 194
  },
  "hsl": {
    "h": 233.077,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.48532,
    "c": 0.17891,
    "h": 272.2
  },
  "luminance": 0.10577
}

Semantic roles & 50–950 ramp

primary
#404FC2
secondary
#CCC592
accent
#CB4DDB
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #404FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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