#404BAF#404BAF

#404BAF is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.2% C 0.158 H 273.7°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#404BAF
RGBrgb(64, 75, 175)
HSLhsl(234, 46%, 47%)
HSVhsv(234, 63%, 69%)
CMYKcmyk(63.4%, 57.1%, 0%, 31.4%)
CIE-LABlab(36.40, 27.50, -54.87)
CIE-LCHlch(36.40, 61.38, 296.62°)
OKLaboklab(46.25% 0.0103 -0.1577)
OKLCHoklch(46.25% 0.158 273.7)
XYZxyz(12.3657, 9.2163, 41.6764)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404BAF #AFA440
analogous
#4083AF #404BAF #6D40AF
triadic
#404BAF #AF404B #4BAF40
tetradic
#404BAF #AF4083 #AFA440 #40AF6D
square
#404BAF #AF4083 #AFA440 #40AF6D
split-complementary
#404BAF #AF6D40 #83AF40
monochromatic
#1F2555 #303882 #404BAF #656FC7 #9299D7

Accessibility & contrast

On white

7.39
#404BAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #404BAF
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404BAF#FFFFFF#000000##FFFFFF
##404BAF1.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB2
Deuteranopia (green-blind)
#0051AD
Tritanopia (blue-blind)
#006375
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #404baf;
/* rgb */ color: rgb(64, 75, 175);
/* oklch */ color: oklch(46.2% 0.158 273.7);
Tailwind
colors: {
  custom: {
    50: '#817dc8',
    500: '#404baf',
    950: '#000000',
  },
}
SCSS
$custom: #404baf;
$custom-light: #817dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#404baf",
  "rgb": {
    "r": 64,
    "g": 75,
    "b": 175
  },
  "hsl": {
    "h": 234.054,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.46249,
    "c": 0.15806,
    "h": 273.7
  },
  "luminance": 0.09217
}

Semantic roles & 50–950 ramp

primary
#404BAF
secondary
#C3BD88
accent
#C952D6
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #404BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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