#404097#404097

#404097 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.3% C 0.139 H 278.6°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#404097
RGBrgb(64, 64, 151)
HSLhsl(240, 40%, 42%)
HSVhsv(240, 58%, 59%)
CMYKcmyk(57.6%, 57.6%, 0%, 40.8%)
CIE-LABlab(31.79, 26.33, -47.93)
CIE-LCHlch(31.79, 54.68, 298.78°)
OKLaboklab(42.25% 0.0209 -0.1374)
OKLCHoklch(42.25% 0.139 278.6)
XYZxyz(9.5319, 6.9905, 30.1192)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404097 #979740
analogous
#406C97 #404097 #6C4097
triadic
#404097 #974040 #409740
tetradic
#404097 #97406C #979740 #40976C
square
#404097 #97406C #979740 #40976C
split-complementary
#404097 #976C40 #6C9740
monochromatic
#1C1C41 #2E2E6C #404097 #5B5BB9 #8686CC

Accessibility & contrast

On white

8.76
#404097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#404097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404097
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404097#FFFFFF#000000##FFFFFF
##4040971.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#105465
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #404097;
/* rgb */ color: rgb(64, 64, 151);
/* oklch */ color: oklch(42.3% 0.139 278.6);
Tailwind
colors: {
  custom: {
    50: '#7d75b6',
    500: '#404097',
    950: '#000000',
  },
}
SCSS
$custom: #404097;
$custom-light: #7d75b6;
$custom-dark: #000000;
JSON
{
  "hex": "#404097",
  "rgb": {
    "r": 64,
    "g": 64,
    "b": 151
  },
  "hsl": {
    "h": 240,
    "s": 40.465,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42252,
    "c": 0.13896,
    "h": 278.6
  },
  "luminance": 0.06991
}

Semantic roles & 50–950 ramp

primary
#404097
secondary
#B6B67D
accent
#D057D0
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #404097

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

Preview Lab → · Contrast checker → · Palette generator →

#404097 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva