#404FA0#404FA0

#404FA0 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.9% C 0.131 H 272.3°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#404FA0
RGBrgb(64, 79, 160)
HSLhsl(231, 43%, 44%)
HSVhsv(231, 60%, 63%)
CMYKcmyk(60%, 50.6%, 0%, 37.3%)
CIE-LABlab(36.40, 19.64, -45.92)
CIE-LCHlch(36.40, 49.94, 293.16°)
OKLaboklab(45.92% 0.0054 -0.1313)
OKLCHoklch(45.92% 0.131 272.3)
XYZxyz(11.2534, 9.2191, 34.4373)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404FA0 #A09140
analogous
#407FA0 #404FA0 #6140A0
triadic
#404FA0 #A0404F #4FA040
tetradic
#404FA0 #A0407F #A09140 #40A061
square
#404FA0 #A0407F #A09140 #40A061
split-complementary
#404FA0 #A06140 #7FA040
monochromatic
#1D2449 #2F3974 #404FA0 #5E6DBF #8A95D0

Accessibility & contrast

On white

7.38
#404FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#404FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404FA0
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404FA0#FFFFFF#000000##FFFFFF
##404FA01.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255AA3
Deuteranopia (green-blind)
#12529E
Tritanopia (blue-blind)
#006170
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #404fa0;
/* rgb */ color: rgb(64, 79, 160);
/* oklch */ color: oklch(45.9% 0.131 272.3);
Tailwind
colors: {
  custom: {
    50: '#7e80bd',
    500: '#404fa0',
    950: '#000000',
  },
}
SCSS
$custom: #404fa0;
$custom-light: #7e80bd;
$custom-dark: #000000;
JSON
{
  "hex": "#404fa0",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 160
  },
  "hsl": {
    "h": 230.625,
    "s": 42.857,
    "l": 43.922
  },
  "oklch": {
    "l": 0.45917,
    "c": 0.13143,
    "h": 272.3
  },
  "luminance": 0.0922
}

Semantic roles & 50–950 ramp

primary
#404FA0
secondary
#BBB281
accent
#BF55D3
background
#F8F7FB
surface
#EFEEF6
border
#CAC9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #404FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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