#40409B#40409B

#40409B is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.6% C 0.145 H 278.3°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#40409B
RGBrgb(64, 64, 155)
HSLhsl(240, 42%, 43%)
HSVhsv(240, 59%, 61%)
CMYKcmyk(58.7%, 58.7%, 0%, 39.2%)
CIE-LABlab(32.08, 27.69, -49.87)
CIE-LCHlch(32.08, 57.05, 299.04°)
OKLaboklab(42.57% 0.0209 -0.1431)
OKLCHoklch(42.57% 0.145 278.3)
XYZxyz(9.8623, 7.1226, 31.8591)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40409B #9B9B40
analogous
#406D9B #40409B #6D409B
triadic
#40409B #9B4040 #409B40
tetradic
#40409B #9B406D #9B9B40 #409B6D
square
#40409B #9B406D #9B9B40 #409B6D
split-complementary
#40409B #9B6D40 #6D9B40
monochromatic
#1C1C44 #2E2E70 #40409B #5C5CBC #8888CE

Accessibility & contrast

On white

8.66
#40409B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#40409B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40409B
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40409B#FFFFFF#000000##FFFFFF
##40409B1.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9E
Deuteranopia (green-blind)
#004899
Tritanopia (blue-blind)
#065667
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #40409b;
/* rgb */ color: rgb(64, 64, 155);
/* oklch */ color: oklch(42.6% 0.145 278.3);
Tailwind
colors: {
  custom: {
    50: '#7e75b9',
    500: '#40409b',
    950: '#000000',
  },
}
SCSS
$custom: #40409b;
$custom-light: #7e75b9;
$custom-dark: #000000;
JSON
{
  "hex": "#40409b",
  "rgb": {
    "r": 64,
    "g": 64,
    "b": 155
  },
  "hsl": {
    "h": 240,
    "s": 41.553,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42568,
    "c": 0.14463,
    "h": 278.3
  },
  "luminance": 0.07123
}

Semantic roles & 50–950 ramp

primary
#40409B
secondary
#B8B87E
accent
#D156D1
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0B0811
muted
#7C7B80

Preview Lab

Preview with #40409B

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

Preview Lab → · Contrast checker → · Palette generator →

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