#404F9B#404F9B

#404F9B is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.6% C 0.124 H 272.2°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#404F9B
RGBrgb(64, 79, 155)
HSLhsl(230, 42%, 43%)
HSVhsv(230, 59%, 61%)
CMYKcmyk(58.7%, 49%, 0%, 39.2%)
CIE-LABlab(36.08, 17.90, -43.43)
CIE-LCHlch(36.08, 46.98, 292.39°)
OKLaboklab(45.56% 0.0048 -0.124)
OKLCHoklch(45.56% 0.124 272.2)
XYZxyz(10.8248, 9.0477, 32.1799)
Luminance0.0905 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404F9B #9B8C40
analogous
#407C9B #404F9B #5E409B
triadic
#404F9B #9B404F #4F9B40
tetradic
#404F9B #9B407C #9B8C40 #409B5E
square
#404F9B #9B407C #9B8C40 #409B5E
split-complementary
#404F9B #9B5E40 #7C9B40
monochromatic
#1C2344 #2E3970 #404F9B #5C6CBC #8893CE

Accessibility & contrast

On white

7.47
#404F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#404F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404F9B
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404F9B#FFFFFF#000000##FFFFFF
##404F9B1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A599E
Deuteranopia (green-blind)
#1C5199
Tritanopia (blue-blind)
#00606D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #404f9b;
/* rgb */ color: rgb(64, 79, 155);
/* oklch */ color: oklch(45.6% 0.124 272.2);
Tailwind
colors: {
  custom: {
    50: '#7d80b9',
    500: '#404f9b',
    950: '#000000',
  },
}
SCSS
$custom: #404f9b;
$custom-light: #7d80b9;
$custom-dark: #000000;
JSON
{
  "hex": "#404f9b",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 155
  },
  "hsl": {
    "h": 230.11,
    "s": 41.553,
    "l": 42.941
  },
  "oklch": {
    "l": 0.45564,
    "c": 0.12411,
    "h": 272.2
  },
  "luminance": 0.09049
}

Semantic roles & 50–950 ramp

primary
#404F9B
secondary
#B8AF7E
accent
#BD56D1
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A11
muted
#7C7C80

Preview Lab

Preview with #404F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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