#40384E#40384E

#40384E is a dark, muted violet. Relative luminance 0.045; OKLCH L 35.8% C 0.039 H 301.1°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#40384E
RGBrgb(64, 56, 78)
HSLhsl(262, 16%, 26%)
HSVhsv(262, 28%, 31%)
CMYKcmyk(17.9%, 28.2%, 0%, 69.4%)
CIE-LABlab(25.16, 8.71, -12.13)
CIE-LCHlch(25.16, 14.93, 305.67°)
OKLaboklab(35.82% 0.02 -0.0332)
OKLCHoklch(35.82% 0.039 301.1)
XYZxyz(4.9034, 4.4684, 7.8104)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40384E #464E38
analogous
#383B4E #40384E #4B384E
triadic
#40384E #4E4038 #384E40
tetradic
#40384E #4E383B #464E38 #384E4B
square
#40384E #4E383B #464E38 #384E4B
split-complementary
#40384E #4E4B38 #3B4E38
monochromatic
#0F0D12 #231E2A #40384E #5D5272 #7B6B95

Accessibility & contrast

On white

11.09
#40384E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#40384E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40384E
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40384E#FFFFFF#000000##FFFFFF
##40384E1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#343C4F
Deuteranopia (green-blind)
#353C4D
Tritanopia (blue-blind)
#3E3B40
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #40384e;
/* rgb */ color: rgb(64, 56, 78);
/* oklch */ color: oklch(35.8% 0.039 301.1);
Tailwind
colors: {
  custom: {
    50: '#756e7f',
    500: '#40384e',
    950: '#000000',
  },
}
SCSS
$custom: #40384e;
$custom-light: #756e7f;
$custom-dark: #000000;
JSON
{
  "hex": "#40384e",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 78
  },
  "hsl": {
    "h": 261.818,
    "s": 16.418,
    "l": 26.275
  },
  "oklch": {
    "l": 0.35821,
    "c": 0.03878,
    "h": 301.1
  },
  "luminance": 0.04468
}

Semantic roles & 50–950 ramp

primary
#40384E
secondary
#747E64
accent
#B96F9E
background
#F7F6F7
surface
#EDEBEE
border
#C8C6C9
text
#08070A
muted
#7B7A7C

Preview Lab

Preview with #40384E

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

Preview Lab → · Contrast checker → · Palette generator →

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