#404BA1#404BA1

#404BA1 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.2% C 0.138 H 274.0°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#404BA1
RGBrgb(64, 75, 161)
HSLhsl(233, 43%, 44%)
HSVhsv(233, 60%, 63%)
CMYKcmyk(60.2%, 53.4%, 0%, 36.9%)
CIE-LABlab(35.39, 22.61, -48.15)
CIE-LCHlch(35.39, 53.19, 295.15°)
OKLaboklab(45.17% 0.0097 -0.1379)
OKLCHoklch(45.17% 0.138 274)
XYZxyz(11.0613, 8.6945, 34.8066)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404BA1 #A19640
analogous
#407CA1 #404BA1 #6640A1
triadic
#404BA1 #A1404B #4BA140
tetradic
#404BA1 #A1407C #A19640 #40A166
square
#404BA1 #A1407C #A19640 #40A166
split-complementary
#404BA1 #A16640 #7CA140
monochromatic
#1D2249 #2F3775 #404BA1 #5F6ABF #8B93D1

Accessibility & contrast

On white

7.67
#404BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#404BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404BA1
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404BA1#FFFFFF#000000##FFFFFF
##404BA11.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1858A4
Deuteranopia (green-blind)
#004F9F
Tritanopia (blue-blind)
#005F6E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #404ba1;
/* rgb */ color: rgb(64, 75, 161);
/* oklch */ color: oklch(45.2% 0.138 274.0);
Tailwind
colors: {
  custom: {
    50: '#7e7dbd',
    500: '#404ba1',
    950: '#000000',
  },
}
SCSS
$custom: #404ba1;
$custom-light: #7e7dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#404ba1",
  "rgb": {
    "r": 64,
    "g": 75,
    "b": 161
  },
  "hsl": {
    "h": 233.196,
    "s": 43.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45174,
    "c": 0.13827,
    "h": 274
  },
  "luminance": 0.08695
}

Semantic roles & 50–950 ramp

primary
#404BA1
secondary
#BCB581
accent
#C555D3
background
#F8F7FB
surface
#EFEEF7
border
#CAC9D0
text
#0B0912
muted
#7C7B81

Preview Lab

Preview with #404BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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