#404FA1#404FA1

#404FA1 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.0% C 0.133 H 272.4°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#404FA1
RGBrgb(64, 79, 161)
HSLhsl(231, 43%, 44%)
HSVhsv(231, 60%, 63%)
CMYKcmyk(60.2%, 50.9%, 0%, 36.9%)
CIE-LABlab(36.47, 19.99, -46.41)
CIE-LCHlch(36.47, 50.53, 293.31°)
OKLaboklab(45.99% 0.0055 -0.1328)
OKLCHoklch(45.99% 0.133 272.4)
XYZxyz(11.3412, 9.2543, 34.8999)
Luminance0.0925 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404FA1 #A19240
analogous
#4080A1 #404FA1 #6240A1
triadic
#404FA1 #A1404F #4FA140
tetradic
#404FA1 #A14080 #A19240 #40A162
square
#404FA1 #A14080 #A19240 #40A162
split-complementary
#404FA1 #A16240 #80A140
monochromatic
#1D2449 #2F3A75 #404FA1 #5F6EBF #8B95D1

Accessibility & contrast

On white

7.37
#404FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#404FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404FA1
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404FA1#FFFFFF#000000##FFFFFF
##404FA11.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235AA4
Deuteranopia (green-blind)
#0F529F
Tritanopia (blue-blind)
#006270
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #404fa1;
/* rgb */ color: rgb(64, 79, 161);
/* oklch */ color: oklch(46.0% 0.133 272.4);
Tailwind
colors: {
  custom: {
    50: '#7e80bd',
    500: '#404fa1',
    950: '#000000',
  },
}
SCSS
$custom: #404fa1;
$custom-light: #7e80bd;
$custom-dark: #000000;
JSON
{
  "hex": "#404fa1",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 161
  },
  "hsl": {
    "h": 230.722,
    "s": 43.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45988,
    "c": 0.13288,
    "h": 272.4
  },
  "luminance": 0.09255
}

Semantic roles & 50–950 ramp

primary
#404FA1
secondary
#BCB381
accent
#BF55D3
background
#F8F7FB
surface
#EFEEF7
border
#CAC9D0
text
#0B0A12
muted
#7C7C81

Preview Lab

Preview with #404FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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