#40366B#40366B

#40366B is a dark, moderate violet. Relative luminance 0.048; OKLCH L 37.1% C 0.089 H 290.0°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#40366B
RGBrgb(64, 54, 107)
HSLhsl(251, 33%, 32%)
HSVhsv(251, 50%, 42%)
CMYKcmyk(40.2%, 49.5%, 0%, 58%)
CIE-LABlab(26.13, 18.46, -29.53)
CIE-LCHlch(26.13, 34.82, 302.01°)
OKLaboklab(37.06% 0.0304 -0.0834)
OKLCHoklch(37.06% 0.089 290)
XYZxyz(6.0866, 4.7897, 14.5109)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40366B #616B36
analogous
#36476B #40366B #5B366B
triadic
#40366B #6B4036 #366B40
tetradic
#40366B #6B3647 #616B36 #366B5B
square
#40366B #6B3647 #616B36 #366B5B
split-complementary
#40366B #6B5B36 #476B36
monochromatic
#0F0D1A #282142 #40366B #584B94 #7668B3

Accessibility & contrast

On white

10.73
#40366B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#40366B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40366B
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40366B#FFFFFF#000000##FFFFFF
##40366B1.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#233F6D
Deuteranopia (green-blind)
#233D6A
Tritanopia (blue-blind)
#35404B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #40366b;
/* rgb */ color: rgb(64, 54, 107);
/* oklch */ color: oklch(37.1% 0.089 290.0);
Tailwind
colors: {
  custom: {
    50: '#776d96',
    500: '#40366b',
    950: '#000000',
  },
}
SCSS
$custom: #40366b;
$custom-light: #776d96;
$custom-dark: #000000;
JSON
{
  "hex": "#40366b",
  "rgb": {
    "r": 64,
    "g": 54,
    "b": 107
  },
  "hsl": {
    "h": 251.321,
    "s": 32.919,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37058,
    "c": 0.08877,
    "h": 290
  },
  "luminance": 0.0479
}

Semantic roles & 50–950 ramp

primary
#40366B
secondary
#919C61
accent
#C95FB5
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#09070D
muted
#7B7A7E

Preview Lab

Preview with #40366B

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

Preview Lab → · Contrast checker → · Palette generator →

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