#40409A#40409A

#40409A is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.5% C 0.143 H 278.4°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#40409A
RGBrgb(64, 64, 154)
HSLhsl(240, 41%, 43%)
HSVhsv(240, 58%, 60%)
CMYKcmyk(58.4%, 58.4%, 0%, 39.6%)
CIE-LABlab(32.01, 27.35, -49.39)
CIE-LCHlch(32.01, 56.46, 298.98°)
OKLaboklab(42.49% 0.0209 -0.1417)
OKLCHoklch(42.49% 0.143 278.4)
XYZxyz(9.7786, 7.0892, 31.4186)
Luminance0.0709 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40409A #9A9A40
analogous
#406D9A #40409A #6D409A
triadic
#40409A #9A4040 #409A40
tetradic
#40409A #9A406D #9A9A40 #409A6D
square
#40409A #9A406D #9A9A40 #409A6D
split-complementary
#40409A #9A6D40 #6D9A40
monochromatic
#1C1C44 #2E2E6F #40409A #5C5CBB #8787CD

Accessibility & contrast

On white

8.68
#40409A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40409A
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40409A#FFFFFF#000000##FFFFFF
##40409A1.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9D
Deuteranopia (green-blind)
#004898
Tritanopia (blue-blind)
#095566
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #40409a;
/* rgb */ color: rgb(64, 64, 154);
/* oklch */ color: oklch(42.5% 0.143 278.4);
Tailwind
colors: {
  custom: {
    50: '#7e75b8',
    500: '#40409a',
    950: '#000000',
  },
}
SCSS
$custom: #40409a;
$custom-light: #7e75b8;
$custom-dark: #000000;
JSON
{
  "hex": "#40409a",
  "rgb": {
    "r": 64,
    "g": 64,
    "b": 154
  },
  "hsl": {
    "h": 240,
    "s": 41.284,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42489,
    "c": 0.14323,
    "h": 278.4
  },
  "luminance": 0.0709
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #40409A

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

Preview Lab → · Contrast checker → · Palette generator →

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