#40506B#40506B

#40506B is a dark, muted blue. Relative luminance 0.079; OKLCH L 42.9% C 0.049 H 260.7°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#40506B
RGBrgb(64, 80, 107)
HSLhsl(218, 25%, 34%)
HSVhsv(218, 40%, 42%)
CMYKcmyk(40.2%, 25.2%, 0%, 58%)
CIE-LABlab(33.75, 1.31, -17.58)
CIE-LCHlch(33.75, 17.63, 274.26°)
OKLaboklab(42.92% -0.008 -0.0488)
OKLCHoklch(42.92% 0.049 260.7)
XYZxyz(7.6360, 7.8885, 15.0273)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40506B #6B5B40
analogous
#40656B #40506B #45406B
triadic
#40506B #6B4050 #506B40
tetradic
#40506B #6B4065 #6B5B40 #406B45
square
#40506B #6B4065 #6B5B40 #406B45
split-complementary
#40506B #6B4540 #656B40
monochromatic
#12171E #293345 #40506B #576D91 #778CAE

Accessibility & contrast

On white

8.15
#40506B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#40506B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40506B
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40506B#FFFFFF#000000##FFFFFF
##40506B1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#47526C
Deuteranopia (green-blind)
#424E6A
Tritanopia (blue-blind)
#325659
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #40506b;
/* rgb */ color: rgb(64, 80, 107);
/* oklch */ color: oklch(42.9% 0.049 260.7);
Tailwind
colors: {
  custom: {
    50: '#768195',
    500: '#40506b',
    950: '#000000',
  },
}
SCSS
$custom: #40506b;
$custom-light: #768195;
$custom-dark: #000000;
JSON
{
  "hex": "#40506b",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 107
  },
  "hsl": {
    "h": 217.674,
    "s": 25.146,
    "l": 33.529
  },
  "oklch": {
    "l": 0.42918,
    "c": 0.04944,
    "h": 260.7
  },
  "luminance": 0.07889
}

Semantic roles & 50–950 ramp

primary
#40506B
secondary
#99896E
accent
#A066C2
background
#F7F7F9
surface
#EDEEF1
border
#C8C9CB
text
#090A0D
muted
#7B7C7E

Preview Lab

Preview with #40506B

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

Preview Lab → · Contrast checker → · Palette generator →

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