#40409E#40409E

#40409E is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.8% C 0.149 H 278.1°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#40409E
RGBrgb(64, 64, 158)
HSLhsl(240, 42%, 44%)
HSVhsv(240, 59%, 62%)
CMYKcmyk(59.5%, 59.5%, 0%, 38%)
CIE-LABlab(32.31, 28.72, -51.32)
CIE-LCHlch(32.31, 58.81, 299.23°)
OKLaboklab(42.81% 0.0209 -0.1474)
OKLCHoklch(42.81% 0.149 278.1)
XYZxyz(10.1173, 7.2247, 33.2025)
Luminance0.0722 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40409E #9E9E40
analogous
#406F9E #40409E #6F409E
triadic
#40409E #9E4040 #409E40
tetradic
#40409E #9E406F #9E9E40 #409E6F
square
#40409E #9E406F #9E9E40 #409E6F
split-complementary
#40409E #9E6F40 #6F9E40
monochromatic
#1D1D47 #2E2E72 #40409E #5E5EBE #8989CF

Accessibility & contrast

On white

8.59
#40409E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#40409E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40409E
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40409E#FFFFFF#000000##FFFFFF
##40409E1.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A1
Deuteranopia (green-blind)
#00489C
Tritanopia (blue-blind)
#005668
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #40409e;
/* rgb */ color: rgb(64, 64, 158);
/* oklch */ color: oklch(42.8% 0.149 278.1);
Tailwind
colors: {
  custom: {
    50: '#7e75bb',
    500: '#40409e',
    950: '#000000',
  },
}
SCSS
$custom: #40409e;
$custom-light: #7e75bb;
$custom-dark: #000000;
JSON
{
  "hex": "#40409e",
  "rgb": {
    "r": 64,
    "g": 64,
    "b": 158
  },
  "hsl": {
    "h": 240,
    "s": 42.342,
    "l": 43.529
  },
  "oklch": {
    "l": 0.4281,
    "c": 0.14884,
    "h": 278.1
  },
  "luminance": 0.07225
}

Semantic roles & 50–950 ramp

primary
#40409E
secondary
#BABA80
accent
#D256D2
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #40409E

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

Preview Lab → · Contrast checker → · Palette generator →

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