#404FAF#404FAF

#404FAF is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.0% C 0.153 H 272.4°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#404FAF
RGBrgb(64, 79, 175)
HSLhsl(232, 46%, 47%)
HSVhsv(232, 63%, 69%)
CMYKcmyk(63.4%, 54.9%, 0%, 31.4%)
CIE-LABlab(37.44, 24.92, -53.19)
CIE-LCHlch(37.44, 58.74, 295.10°)
OKLaboklab(47.03% 0.0065 -0.1527)
OKLCHoklch(47.03% 0.153 272.4)
XYZxyz(12.6456, 9.7760, 41.7697)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404FAF #AFA040
analogous
#4087AF #404FAF #6940AF
triadic
#404FAF #AF404F #4FAF40
tetradic
#404FAF #AF4087 #AFA040 #40AF69
square
#404FAF #AF4087 #AFA040 #40AF69
split-complementary
#404FAF #AF6940 #87AF40
monochromatic
#1F2755 #303B82 #404FAF #6573C7 #929CD7

Accessibility & contrast

On white

7.11
#404FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#404FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404FAF
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404FAF#FFFFFF#000000##FFFFFF
##404FAF1.007.112.967.11
#FFFFFF7.111.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#085DB2
Deuteranopia (green-blind)
#0053AD
Tritanopia (blue-blind)
#006677
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #404faf;
/* rgb */ color: rgb(64, 79, 175);
/* oklch */ color: oklch(47.0% 0.153 272.4);
Tailwind
colors: {
  custom: {
    50: '#8080c8',
    500: '#404faf',
    950: '#000000',
  },
}
SCSS
$custom: #404faf;
$custom-light: #8080c8;
$custom-dark: #000000;
JSON
{
  "hex": "#404faf",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 175
  },
  "hsl": {
    "h": 231.892,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.47026,
    "c": 0.15286,
    "h": 272.4
  },
  "luminance": 0.09777
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #404FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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