#404EAF#404EAF

#404EAF is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.8% C 0.154 H 272.8°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#404EAF
RGBrgb(64, 78, 175)
HSLhsl(232, 46%, 47%)
HSVhsv(232, 63%, 69%)
CMYKcmyk(63.4%, 55.4%, 0%, 31.4%)
CIE-LABlab(37.18, 25.57, -53.61)
CIE-LCHlch(37.18, 59.40, 295.50°)
OKLaboklab(46.83% 0.0075 -0.154)
OKLCHoklch(46.83% 0.154 272.8)
XYZxyz(12.5740, 9.6329, 41.7458)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404EAF #AFA140
analogous
#4086AF #404EAF #6940AF
triadic
#404EAF #AF404E #4EAF40
tetradic
#404EAF #AF4086 #AFA140 #40AF69
square
#404EAF #AF4086 #AFA140 #40AF69
split-complementary
#404EAF #AF6940 #86AF40
monochromatic
#1F2655 #303A82 #404EAF #6572C7 #929BD7

Accessibility & contrast

On white

7.18
#404EAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#404EAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404EAF
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404EAF#FFFFFF#000000##FFFFFF
##404EAF1.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#015DB2
Deuteranopia (green-blind)
#0053AD
Tritanopia (blue-blind)
#006577
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #404eaf;
/* rgb */ color: rgb(64, 78, 175);
/* oklch */ color: oklch(46.8% 0.154 272.8);
Tailwind
colors: {
  custom: {
    50: '#807fc8',
    500: '#404eaf',
    950: '#000000',
  },
}
SCSS
$custom: #404eaf;
$custom-light: #807fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#404eaf",
  "rgb": {
    "r": 64,
    "g": 78,
    "b": 175
  },
  "hsl": {
    "h": 232.432,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.4683,
    "c": 0.15416,
    "h": 272.8
  },
  "luminance": 0.09634
}

Semantic roles & 50–950 ramp

primary
#404EAF
secondary
#C3BB88
accent
#C552D6
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #404EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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