#404099#404099

#404099 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.4% C 0.142 H 278.5°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#404099
RGBrgb(64, 64, 153)
HSLhsl(240, 41%, 43%)
HSVhsv(240, 58%, 60%)
CMYKcmyk(58.2%, 58.2%, 0%, 40%)
CIE-LABlab(31.93, 27.01, -48.90)
CIE-LCHlch(31.93, 55.87, 298.91°)
OKLaboklab(42.41% 0.0209 -0.1403)
OKLCHoklch(42.41% 0.142 278.5)
XYZxyz(9.6957, 7.0560, 30.9818)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404099 #999940
analogous
#406C99 #404099 #6C4099
triadic
#404099 #994040 #409940
tetradic
#404099 #99406C #999940 #40996C
square
#404099 #99406C #999940 #40996C
split-complementary
#404099 #996C40 #6C9940
monochromatic
#1C1C43 #2E2E6E #404099 #5C5CBB #8787CD

Accessibility & contrast

On white

8.71
#404099 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#404099 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404099
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404099#FFFFFF#000000##FFFFFF
##4040991.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9C
Deuteranopia (green-blind)
#004897
Tritanopia (blue-blind)
#0B5566
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #404099;
/* rgb */ color: rgb(64, 64, 153);
/* oklch */ color: oklch(42.4% 0.142 278.5);
Tailwind
colors: {
  custom: {
    50: '#7d75b8',
    500: '#404099',
    950: '#000000',
  },
}
SCSS
$custom: #404099;
$custom-light: #7d75b8;
$custom-dark: #000000;
JSON
{
  "hex": "#404099",
  "rgb": {
    "r": 64,
    "g": 64,
    "b": 153
  },
  "hsl": {
    "h": 240,
    "s": 41.014,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42409,
    "c": 0.14181,
    "h": 278.5
  },
  "luminance": 0.07057
}

Semantic roles & 50–950 ramp

primary
#404099
secondary
#B7B77E
accent
#D157D1
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #404099

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

Preview Lab → · Contrast checker → · Palette generator →

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