#40409C#40409C

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

Color values

HEX#40409C
RGBrgb(64, 64, 156)
HSLhsl(240, 42%, 43%)
HSVhsv(240, 59%, 61%)
CMYKcmyk(59%, 59%, 0%, 38.8%)
CIE-LABlab(32.16, 28.03, -50.36)
CIE-LCHlch(32.16, 57.63, 299.11°)
OKLaboklab(42.65% 0.0209 -0.1445)
OKLCHoklch(42.65% 0.146 278.2)
XYZxyz(9.9466, 7.1564, 32.3032)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40409C #9C9C40
analogous
#406E9C #40409C #6E409C
triadic
#40409C #9C4040 #409C40
tetradic
#40409C #9C406E #9C9C40 #409C6E
square
#40409C #9C406E #9C9C40 #409C6E
split-complementary
#40409C #9C6E40 #6E9C40
monochromatic
#1C1C45 #2E2E71 #40409C #5D5DBC #8888CE

Accessibility & contrast

On white

8.64
#40409C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#40409C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40409C
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40409C#FFFFFF#000000##FFFFFF
##40409C1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9F
Deuteranopia (green-blind)
#00489A
Tritanopia (blue-blind)
#035667
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #40409c;
/* rgb */ color: rgb(64, 64, 156);
/* oklch */ color: oklch(42.6% 0.146 278.2);
Tailwind
colors: {
  custom: {
    50: '#7e75ba',
    500: '#40409c',
    950: '#000000',
  },
}
SCSS
$custom: #40409c;
$custom-light: #7e75ba;
$custom-dark: #000000;
JSON
{
  "hex": "#40409c",
  "rgb": {
    "r": 64,
    "g": 64,
    "b": 156
  },
  "hsl": {
    "h": 240,
    "s": 41.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42648,
    "c": 0.14603,
    "h": 278.2
  },
  "luminance": 0.07157
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #40409C

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

Preview Lab → · Contrast checker → · Palette generator →

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