#404DC6#404DC6

#404DC6 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.5% C 0.187 H 272.6°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#404DC6
RGBrgb(64, 77, 198)
HSLhsl(234, 54%, 51%)
HSVhsv(234, 68%, 78%)
CMYKcmyk(67.7%, 61.1%, 0%, 22.4%)
CIE-LABlab(38.68, 34.26, -64.67)
CIE-LCHlch(38.68, 73.18, 297.92°)
OKLaboklab(48.5% 0.0085 -0.1865)
OKLCHoklch(48.5% 0.187 272.6)
XYZxyz(14.9579, 10.4736, 54.6485)
Luminance0.1047 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404DC6 #C6B940
analogous
#4090C6 #404DC6 #7640C6
triadic
#404DC6 #C6404D #4DC640
tetradic
#404DC6 #C64090 #C6B940 #40C676
square
#404DC6 #C64090 #C6B940 #40C676
split-complementary
#404DC6 #C67640 #90C640
monochromatic
#20276C #2E399B #404DC6 #6F79D4 #9EA5E2

Accessibility & contrast

On white

6.79
#404DC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#404DC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #404DC6
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404DC6#FFFFFF#000000##FFFFFF
##404DC61.006.793.106.79
#FFFFFF6.791.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CA
Deuteranopia (green-blind)
#0055C4
Tritanopia (blue-blind)
#006B82
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #404dc6;
/* rgb */ color: rgb(64, 77, 198);
/* oklch */ color: oklch(48.5% 0.187 272.6);
Tailwind
colors: {
  custom: {
    50: '#857ed8',
    500: '#404dc6',
    950: '#000000',
  },
}
SCSS
$custom: #404dc6;
$custom-light: #857ed8;
$custom-dark: #000000;
JSON
{
  "hex": "#404dc6",
  "rgb": {
    "r": 64,
    "g": 77,
    "b": 198
  },
  "hsl": {
    "h": 234.179,
    "s": 54.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.485,
    "c": 0.18667,
    "h": 272.6
  },
  "luminance": 0.10475
}

Semantic roles & 50–950 ramp

primary
#404DC6
secondary
#CEC993
accent
#CF4ADD
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #404DC6

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

Preview Lab → · Contrast checker → · Palette generator →

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