#40409D#40409D

#40409D is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.7% C 0.147 H 278.2°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#40409D
RGBrgb(64, 64, 157)
HSLhsl(240, 42%, 43%)
HSVhsv(240, 59%, 62%)
CMYKcmyk(59.2%, 59.2%, 0%, 38.4%)
CIE-LABlab(32.24, 28.38, -50.84)
CIE-LCHlch(32.24, 58.22, 299.17°)
OKLaboklab(42.73% 0.0209 -0.1459)
OKLCHoklch(42.73% 0.147 278.2)
XYZxyz(10.0316, 7.1904, 32.7510)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40409D #9D9D40
analogous
#406E9D #40409D #6E409D
triadic
#40409D #9D4040 #409D40
tetradic
#40409D #9D406E #9D9D40 #409D6E
square
#40409D #9D406E #9D9D40 #409D6E
split-complementary
#40409D #9D6E40 #6E9D40
monochromatic
#1D1D46 #2E2E72 #40409D #5D5DBD #8989CF

Accessibility & contrast

On white

8.61
#40409D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40409D
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40409D#FFFFFF#000000##FFFFFF
##40409D1.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A0
Deuteranopia (green-blind)
#00489B
Tritanopia (blue-blind)
#015668
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #40409d;
/* rgb */ color: rgb(64, 64, 157);
/* oklch */ color: oklch(42.7% 0.147 278.2);
Tailwind
colors: {
  custom: {
    50: '#7e75bb',
    500: '#40409d',
    950: '#000000',
  },
}
SCSS
$custom: #40409d;
$custom-light: #7e75bb;
$custom-dark: #000000;
JSON
{
  "hex": "#40409d",
  "rgb": {
    "r": 64,
    "g": 64,
    "b": 157
  },
  "hsl": {
    "h": 240,
    "s": 42.081,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42729,
    "c": 0.14744,
    "h": 278.2
  },
  "luminance": 0.07191
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #40409D

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

Preview Lab → · Contrast checker → · Palette generator →

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