#404DC1#404DC1

#404DC1 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 48.1% C 0.180 H 272.7°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#404DC1
RGBrgb(64, 77, 193)
HSLhsl(234, 51%, 50%)
HSVhsv(234, 67%, 76%)
CMYKcmyk(66.8%, 60.1%, 0%, 24.3%)
CIE-LABlab(38.28, 32.52, -62.40)
CIE-LCHlch(38.28, 70.37, 297.53°)
OKLaboklab(48.08% 0.0086 -0.1798)
OKLCHoklch(48.08% 0.18 272.7)
XYZxyz(14.3906, 10.2467, 51.6612)
Luminance0.1025 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404DC1 #C1B440
analogous
#408EC1 #404DC1 #7340C1
triadic
#404DC1 #C1404D #4DC140
tetradic
#404DC1 #C1408E #C1B440 #40C173
square
#404DC1 #C1408E #C1B440 #40C173
split-complementary
#404DC1 #C17340 #8EC140
monochromatic
#212866 #303A94 #404DC1 #6E78D0 #9CA3DF

Accessibility & contrast

On white

6.89
#404DC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#404DC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #404DC1
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404DC1#FFFFFF#000000##FFFFFF
##404DC11.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C5
Deuteranopia (green-blind)
#0054BF
Tritanopia (blue-blind)
#006A7F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #404dc1;
/* rgb */ color: rgb(64, 77, 193);
/* oklch */ color: oklch(48.1% 0.180 272.7);
Tailwind
colors: {
  custom: {
    50: '#847ed5',
    500: '#404dc1',
    950: '#000000',
  },
}
SCSS
$custom: #404dc1;
$custom-light: #847ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#404dc1",
  "rgb": {
    "r": 64,
    "g": 77,
    "b": 193
  },
  "hsl": {
    "h": 233.953,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.48082,
    "c": 0.18004,
    "h": 272.7
  },
  "luminance": 0.10248
}

Semantic roles & 50–950 ramp

primary
#404DC1
secondary
#CBC592
accent
#CC4DDA
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #404DC1

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

Preview Lab → · Contrast checker → · Palette generator →

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