#404CB1#404CB1

#404CB1 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.6% C 0.160 H 273.4°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#404CB1
RGBrgb(64, 76, 177)
HSLhsl(234, 47%, 47%)
HSVhsv(234, 64%, 69%)
CMYKcmyk(63.8%, 57.1%, 0%, 30.6%)
CIE-LABlab(36.80, 27.56, -55.40)
CIE-LCHlch(36.80, 61.88, 296.45°)
OKLaboklab(46.6% 0.0094 -0.1593)
OKLCHoklch(46.6% 0.16 273.4)
XYZxyz(12.6320, 9.4321, 42.7413)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404CB1 #B1A540
analogous
#4085B1 #404CB1 #6C40B1
triadic
#404CB1 #B1404C #4CB140
tetradic
#404CB1 #B14085 #B1A540 #40B16C
square
#404CB1 #B14085 #B1A540 #40B16C
split-complementary
#404CB1 #B16C40 #85B140
monochromatic
#1F2557 #303984 #404CB1 #6671C8 #939BD8

Accessibility & contrast

On white

7.27
#404CB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#404CB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404CB1
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404CB1#FFFFFF#000000##FFFFFF
##404CB11.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB4
Deuteranopia (green-blind)
#0052AF
Tritanopia (blue-blind)
#006477
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #404cb1;
/* rgb */ color: rgb(64, 76, 177);
/* oklch */ color: oklch(46.6% 0.160 273.4);
Tailwind
colors: {
  custom: {
    50: '#817ec9',
    500: '#404cb1',
    950: '#000000',
  },
}
SCSS
$custom: #404cb1;
$custom-light: #817ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#404cb1",
  "rgb": {
    "r": 64,
    "g": 76,
    "b": 177
  },
  "hsl": {
    "h": 233.628,
    "s": 46.888,
    "l": 47.255
  },
  "oklch": {
    "l": 0.46598,
    "c": 0.15954,
    "h": 273.4
  },
  "luminance": 0.09433
}

Semantic roles & 50–950 ramp

primary
#404CB1
secondary
#C3BD89
accent
#C851D7
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #404CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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