#404AA6#404AA6

#404AA6 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.4% C 0.147 H 274.3°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#404AA6
RGBrgb(64, 74, 166)
HSLhsl(234, 44%, 45%)
HSVhsv(234, 61%, 65%)
CMYKcmyk(61.4%, 55.4%, 0%, 34.9%)
CIE-LABlab(35.48, 25.01, -51.00)
CIE-LCHlch(35.48, 56.80, 296.12°)
OKLaboklab(45.35% 0.011 -0.1463)
OKLCHoklch(45.35% 0.147 274.3)
XYZxyz(11.4438, 8.7398, 37.1529)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404AA6 #A69C40
analogous
#407DA6 #404AA6 #6940A6
triadic
#404AA6 #A6404A #4AA640
tetradic
#404AA6 #A6407D #A69C40 #40A669
square
#404AA6 #A6407D #A69C40 #40A669
split-complementary
#404AA6 #A66940 #7DA640
monochromatic
#1E234E #2F367A #404AA6 #616BC2 #8D94D3

Accessibility & contrast

On white

7.64
#404AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#404AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404AA6
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404AA6#FFFFFF#000000##FFFFFF
##404AA61.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0658A9
Deuteranopia (green-blind)
#004FA4
Tritanopia (blue-blind)
#006070
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #404aa6;
/* rgb */ color: rgb(64, 74, 166);
/* oklch */ color: oklch(45.4% 0.147 274.3);
Tailwind
colors: {
  custom: {
    50: '#7f7cc1',
    500: '#404aa6',
    950: '#000000',
  },
}
SCSS
$custom: #404aa6;
$custom-light: #7f7cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#404aa6",
  "rgb": {
    "r": 64,
    "g": 74,
    "b": 166
  },
  "hsl": {
    "h": 234.118,
    "s": 44.348,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45353,
    "c": 0.14675,
    "h": 274.3
  },
  "luminance": 0.08741
}

Semantic roles & 50–950 ramp

primary
#404AA6
secondary
#BEB884
accent
#C754D4
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0912
muted
#7C7B81

Preview Lab

Preview with #404AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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