#40409F#40409F

#40409F is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.9% C 0.150 H 278.0°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#40409F
RGBrgb(64, 64, 159)
HSLhsl(240, 43%, 44%)
HSVhsv(240, 60%, 62%)
CMYKcmyk(59.7%, 59.7%, 0%, 37.6%)
CIE-LABlab(32.39, 29.06, -51.80)
CIE-LCHlch(32.39, 59.39, 299.29°)
OKLaboklab(42.89% 0.0209 -0.1488)
OKLCHoklch(42.89% 0.15 278)
XYZxyz(10.2038, 7.2592, 33.6576)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40409F #9F9F40
analogous
#406F9F #40409F #6F409F
triadic
#40409F #9F4040 #409F40
tetradic
#40409F #9F406F #9F9F40 #409F6F
square
#40409F #9F406F #9F9F40 #409F6F
split-complementary
#40409F #9F6F40 #6F9F40
monochromatic
#1D1D48 #2E2E73 #40409F #5E5EBE #8A8AD0

Accessibility & contrast

On white

8.56
#40409F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#40409F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40409F
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40409F#FFFFFF#000000##FFFFFF
##40409F1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A2
Deuteranopia (green-blind)
#00489D
Tritanopia (blue-blind)
#005769
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #40409f;
/* rgb */ color: rgb(64, 64, 159);
/* oklch */ color: oklch(42.9% 0.150 278.0);
Tailwind
colors: {
  custom: {
    50: '#7e75bc',
    500: '#40409f',
    950: '#000000',
  },
}
SCSS
$custom: #40409f;
$custom-light: #7e75bc;
$custom-dark: #000000;
JSON
{
  "hex": "#40409f",
  "rgb": {
    "r": 64,
    "g": 64,
    "b": 159
  },
  "hsl": {
    "h": 240,
    "s": 42.601,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42891,
    "c": 0.15024,
    "h": 278
  },
  "luminance": 0.0726
}

Semantic roles & 50–950 ramp

primary
#40409F
secondary
#BBBB80
accent
#D255D2
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #40409F

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

Preview Lab → · Contrast checker → · Palette generator →

#40409F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva