#404CA1#404CA1

#404CA1 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.4% C 0.137 H 273.6°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#404CA1
RGBrgb(64, 76, 161)
HSLhsl(233, 43%, 44%)
HSVhsv(233, 60%, 63%)
CMYKcmyk(60.2%, 52.8%, 0%, 36.9%)
CIE-LABlab(35.66, 21.96, -47.72)
CIE-LCHlch(35.66, 52.53, 294.71°)
OKLaboklab(45.38% 0.0086 -0.1366)
OKLCHoklch(45.38% 0.137 273.6)
XYZxyz(11.1297, 8.8312, 34.8294)
Luminance0.0883 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404CA1 #A19540
analogous
#407DA1 #404CA1 #6540A1
triadic
#404CA1 #A1404C #4CA140
tetradic
#404CA1 #A1407D #A19540 #40A165
square
#404CA1 #A1407D #A19540 #40A165
split-complementary
#404CA1 #A16540 #7DA140
monochromatic
#1D2349 #2F3775 #404CA1 #5F6BBF #8B93D1

Accessibility & contrast

On white

7.59
#404CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#404CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404CA1
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404CA1#FFFFFF#000000##FFFFFF
##404CA11.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B58A4
Deuteranopia (green-blind)
#00509F
Tritanopia (blue-blind)
#00606F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #404ca1;
/* rgb */ color: rgb(64, 76, 161);
/* oklch */ color: oklch(45.4% 0.137 273.6);
Tailwind
colors: {
  custom: {
    50: '#7e7dbd',
    500: '#404ca1',
    950: '#000000',
  },
}
SCSS
$custom: #404ca1;
$custom-light: #7e7dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#404ca1",
  "rgb": {
    "r": 64,
    "g": 76,
    "b": 161
  },
  "hsl": {
    "h": 232.577,
    "s": 43.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45376,
    "c": 0.13692,
    "h": 273.6
  },
  "luminance": 0.08832
}

Semantic roles & 50–950 ramp

primary
#404CA1
secondary
#BCB481
accent
#C355D3
background
#F8F7FB
surface
#EFEEF7
border
#CAC9D0
text
#0B0912
muted
#7C7B81

Preview Lab

Preview with #404CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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