#40366C#40366C

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

Color values

HEX#40366C
RGBrgb(64, 54, 108)
HSLhsl(251, 33%, 32%)
HSVhsv(251, 50%, 42%)
CMYKcmyk(40.7%, 50%, 0%, 57.6%)
CIE-LABlab(26.19, 18.77, -30.07)
CIE-LCHlch(26.19, 35.45, 301.97°)
OKLaboklab(37.12% 0.0306 -0.085)
OKLCHoklch(37.12% 0.09 289.8)
XYZxyz(6.1396, 4.8109, 14.7896)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40366C #626C36
analogous
#36476C #40366C #5B366C
triadic
#40366C #6C4036 #366C40
tetradic
#40366C #6C3647 #626C36 #366C5B
square
#40366C #6C3647 #626C36 #366C5B
split-complementary
#40366C #6C5B36 #476C36
monochromatic
#100D1A #282243 #40366C #584A95 #7769B4

Accessibility & contrast

On white

10.70
#40366C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40366C
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40366C#FFFFFF#000000##FFFFFF
##40366C1.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#223F6E
Deuteranopia (green-blind)
#223D6B
Tritanopia (blue-blind)
#34414C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #40366c;
/* rgb */ color: rgb(64, 54, 108);
/* oklch */ color: oklch(37.1% 0.090 289.8);
Tailwind
colors: {
  custom: {
    50: '#776d96',
    500: '#40366c',
    950: '#000000',
  },
}
SCSS
$custom: #40366c;
$custom-light: #776d96;
$custom-dark: #000000;
JSON
{
  "hex": "#40366c",
  "rgb": {
    "r": 64,
    "g": 54,
    "b": 108
  },
  "hsl": {
    "h": 251.111,
    "s": 33.333,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37124,
    "c": 0.09031,
    "h": 289.8
  },
  "luminance": 0.04811
}

Semantic roles & 50–950 ramp

primary
#40366C
secondary
#929D61
accent
#C95EB6
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#09070D
muted
#7B7A7E

Preview Lab

Preview with #40366C

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

Preview Lab → · Contrast checker → · Palette generator →

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