#40366E#40366E

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

Color values

HEX#40366E
RGBrgb(64, 54, 110)
HSLhsl(251, 34%, 32%)
HSVhsv(251, 51%, 43%)
CMYKcmyk(41.8%, 50.9%, 0%, 56.9%)
CIE-LABlab(26.31, 19.39, -31.15)
CIE-LCHlch(26.31, 36.69, 301.91°)
OKLaboklab(37.26% 0.0308 -0.0881)
OKLCHoklch(37.26% 0.093 289.3)
XYZxyz(6.2472, 4.8539, 15.3566)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40366E #646E36
analogous
#36486E #40366E #5C366E
triadic
#40366E #6E4036 #366E40
tetradic
#40366E #6E3648 #646E36 #366E5C
square
#40366E #6E3648 #646E36 #366E5C
split-complementary
#40366E #6E5C36 #486E36
monochromatic
#100E1C #282245 #40366E #584A97 #7769B5

Accessibility & contrast

On white

10.66
#40366E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#40366E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40366E
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40366E#FFFFFF#000000##FFFFFF
##40366E1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#203F70
Deuteranopia (green-blind)
#213D6D
Tritanopia (blue-blind)
#33414C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #40366e;
/* rgb */ color: rgb(64, 54, 110);
/* oklch */ color: oklch(37.3% 0.093 289.3);
Tailwind
colors: {
  custom: {
    50: '#786d98',
    500: '#40366e',
    950: '#000000',
  },
}
SCSS
$custom: #40366e;
$custom-light: #786d98;
$custom-dark: #000000;
JSON
{
  "hex": "#40366e",
  "rgb": {
    "r": 64,
    "g": 54,
    "b": 110
  },
  "hsl": {
    "h": 250.714,
    "s": 34.146,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37259,
    "c": 0.09337,
    "h": 289.3
  },
  "luminance": 0.04854
}

Semantic roles & 50–950 ramp

primary
#40366E
secondary
#939E62
accent
#CA5EB7
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#09070D
muted
#7B7A7E

Preview Lab

Preview with #40366E

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

Preview Lab → · Contrast checker → · Palette generator →

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