#40366F#40366F

#40366F is a dark, moderate violet. Relative luminance 0.049; OKLCH L 37.3% C 0.095 H 289.0°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#40366F
RGBrgb(64, 54, 111)
HSLhsl(251, 35%, 32%)
HSVhsv(251, 51%, 44%)
CMYKcmyk(42.3%, 51.4%, 0%, 56.5%)
CIE-LABlab(26.38, 19.71, -31.69)
CIE-LCHlch(26.38, 37.32, 301.88°)
OKLaboklab(37.33% 0.0309 -0.0897)
OKLCHoklch(37.33% 0.095 289)
XYZxyz(6.3020, 4.8758, 15.6449)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40366F #656F36
analogous
#36496F #40366F #5C366F
triadic
#40366F #6F4036 #366F40
tetradic
#40366F #6F3649 #656F36 #366F5C
square
#40366F #6F3649 #656F36 #366F5C
split-complementary
#40366F #6F5C36 #496F36
monochromatic
#110E1D #282246 #40366F #584A98 #7769B6

Accessibility & contrast

On white

10.63
#40366F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#40366F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40366F
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40366F#FFFFFF#000000##FFFFFF
##40366F1.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204071
Deuteranopia (green-blind)
#203D6E
Tritanopia (blue-blind)
#33424D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #40366f;
/* rgb */ color: rgb(64, 54, 111);
/* oklch */ color: oklch(37.3% 0.095 289.0);
Tailwind
colors: {
  custom: {
    50: '#786d99',
    500: '#40366f',
    950: '#000000',
  },
}
SCSS
$custom: #40366f;
$custom-light: #786d99;
$custom-dark: #000000;
JSON
{
  "hex": "#40366f",
  "rgb": {
    "r": 64,
    "g": 54,
    "b": 111
  },
  "hsl": {
    "h": 250.526,
    "s": 34.545,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37328,
    "c": 0.0949,
    "h": 289
  },
  "luminance": 0.04876
}

Semantic roles & 50–950 ramp

primary
#40366F
secondary
#949F62
accent
#CB5DB7
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#09070E
muted
#7B7A7E

Preview Lab

Preview with #40366F

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

Preview Lab → · Contrast checker → · Palette generator →

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