#404AAA#404AAA

#404AAA is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.7% C 0.152 H 274.2°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#404AAA
RGBrgb(64, 74, 170)
HSLhsl(234, 45%, 46%)
HSVhsv(234, 62%, 67%)
CMYKcmyk(62.4%, 56.5%, 0%, 33.3%)
CIE-LABlab(35.77, 26.40, -52.92)
CIE-LCHlch(35.77, 59.14, 296.52°)
OKLaboklab(45.66% 0.0112 -0.152)
OKLCHoklch(45.66% 0.152 274.2)
XYZxyz(11.8164, 8.8889, 39.1154)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404AAA #AAA040
analogous
#407FAA #404AAA #6B40AA
triadic
#404AAA #AA404A #4AAA40
tetradic
#404AAA #AA407F #AAA040 #40AA6B
square
#404AAA #AA407F #AAA040 #40AA6B
split-complementary
#404AAA #AA6B40 #7FAA40
monochromatic
#1F2351 #2F377E #404AAA #636CC4 #8F96D5

Accessibility & contrast

On white

7.56
#404AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#404AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404AAA
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404AAA#FFFFFF#000000##FFFFFF
##404AAA1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AD
Deuteranopia (green-blind)
#0050A8
Tritanopia (blue-blind)
#006172
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #404aaa;
/* rgb */ color: rgb(64, 74, 170);
/* oklch */ color: oklch(45.7% 0.152 274.2);
Tailwind
colors: {
  custom: {
    50: '#807cc4',
    500: '#404aaa',
    950: '#000000',
  },
}
SCSS
$custom: #404aaa;
$custom-light: #807cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#404aaa",
  "rgb": {
    "r": 64,
    "g": 74,
    "b": 170
  },
  "hsl": {
    "h": 234.34,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.45663,
    "c": 0.15239,
    "h": 274.2
  },
  "luminance": 0.0889
}

Semantic roles & 50–950 ramp

primary
#404AAA
secondary
#C0BB86
accent
#C953D5
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #404AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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