#404FC6#404FC6

#404FC6 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.9% C 0.184 H 272.2°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#404FC6
RGBrgb(64, 79, 198)
HSLhsl(233, 54%, 51%)
HSVhsv(233, 68%, 78%)
CMYKcmyk(67.7%, 60.1%, 0%, 22.4%)
CIE-LABlab(39.17, 33.00, -63.87)
CIE-LCHlch(39.17, 71.89, 297.33°)
OKLaboklab(48.86% 0.0069 -0.1841)
OKLCHoklch(48.86% 0.184 272.2)
XYZxyz(15.1000, 10.7578, 54.6958)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404FC6 #C6B740
analogous
#4092C6 #404FC6 #7440C6
triadic
#404FC6 #C6404F #4FC640
tetradic
#404FC6 #C64092 #C6B740 #40C674
square
#404FC6 #C64092 #C6B740 #40C674
split-complementary
#404FC6 #C67440 #92C640
monochromatic
#20296C #2E3A9B #404FC6 #6F7AD4 #9EA6E2

Accessibility & contrast

On white

6.66
#404FC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#404FC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #404FC6
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404FC6#FFFFFF#000000##FFFFFF
##404FC61.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CA
Deuteranopia (green-blind)
#0056C4
Tritanopia (blue-blind)
#006D83
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #404fc6;
/* rgb */ color: rgb(64, 79, 198);
/* oklch */ color: oklch(48.9% 0.184 272.2);
Tailwind
colors: {
  custom: {
    50: '#8580d8',
    500: '#404fc6',
    950: '#000000',
  },
}
SCSS
$custom: #404fc6;
$custom-light: #8580d8;
$custom-dark: #000000;
JSON
{
  "hex": "#404fc6",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 198
  },
  "hsl": {
    "h": 233.284,
    "s": 54.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.48862,
    "c": 0.18424,
    "h": 272.2
  },
  "luminance": 0.10759
}

Semantic roles & 50–950 ramp

primary
#404FC6
secondary
#CEC893
accent
#CD4ADD
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #404FC6

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

Preview Lab → · Contrast checker → · Palette generator →

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