#40496B#40496B

#40496B is a dark, muted blue. Relative luminance 0.069; OKLCH L 41.3% C 0.058 H 272.3°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#40496B
RGBrgb(64, 73, 107)
HSLhsl(227, 25%, 34%)
HSVhsv(227, 40%, 42%)
CMYKcmyk(40.2%, 31.8%, 0%, 58%)
CIE-LABlab(31.62, 5.83, -20.89)
CIE-LCHlch(31.62, 21.69, 285.59°)
OKLaboklab(41.26% 0.0023 -0.0583)
OKLCHoklch(41.26% 0.058 272.3)
XYZxyz(7.1499, 6.9163, 14.8653)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40496B #6B6240
analogous
#405E6B #40496B #4C406B
triadic
#40496B #6B4049 #496B40
tetradic
#40496B #6B405E #6B6240 #406B4C
square
#40496B #6B405E #6B6240 #406B4C
split-complementary
#40496B #6B4C40 #5E6B40
monochromatic
#12151E #292F45 #40496B #576391 #7783AE

Accessibility & contrast

On white

8.81
#40496B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#40496B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40496B
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40496B#FFFFFF#000000##FFFFFF
##40496B1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E4C6C
Deuteranopia (green-blind)
#3A496A
Tritanopia (blue-blind)
#335055
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #40496b;
/* rgb */ color: rgb(64, 73, 107);
/* oklch */ color: oklch(41.3% 0.058 272.3);
Tailwind
colors: {
  custom: {
    50: '#767b95',
    500: '#40496b',
    950: '#000000',
  },
}
SCSS
$custom: #40496b;
$custom-light: #767b95;
$custom-dark: #000000;
JSON
{
  "hex": "#40496b",
  "rgb": {
    "r": 64,
    "g": 73,
    "b": 107
  },
  "hsl": {
    "h": 227.442,
    "s": 25.146,
    "l": 33.529
  },
  "oklch": {
    "l": 0.41255,
    "c": 0.05831,
    "h": 272.3
  },
  "luminance": 0.06917
}

Semantic roles & 50–950 ramp

primary
#40496B
secondary
#99906E
accent
#AE66C2
background
#F7F7F9
surface
#EDEDF1
border
#C8C8CB
text
#09090D
muted
#7B7B7E

Preview Lab

Preview with #40496B

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

Preview Lab → · Contrast checker → · Palette generator →

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