#40366A#40366A

#40366A is a dark, moderate violet. Relative luminance 0.048; OKLCH L 37.0% C 0.087 H 290.3°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#40366A
RGBrgb(64, 54, 106)
HSLhsl(252, 33%, 31%)
HSVhsv(252, 49%, 42%)
CMYKcmyk(39.6%, 49.1%, 0%, 58.4%)
CIE-LABlab(26.07, 18.15, -28.98)
CIE-LCHlch(26.07, 34.19, 302.05°)
OKLaboklab(36.99% 0.0303 -0.0818)
OKLCHoklch(36.99% 0.087 290.3)
XYZxyz(6.0343, 4.7688, 14.2354)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40366A #606A36
analogous
#36466A #40366A #5A366A
triadic
#40366A #6A4036 #366A40
tetradic
#40366A #6A3646 #606A36 #366A5A
square
#40366A #6A3646 #606A36 #366A5A
split-complementary
#40366A #6A5A36 #466A36
monochromatic
#0F0D19 #282141 #40366A #584B93 #7668B2

Accessibility & contrast

On white

10.75
#40366A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#40366A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40366A
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40366A#FFFFFF#000000##FFFFFF
##40366A1.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#233F6C
Deuteranopia (green-blind)
#243D69
Tritanopia (blue-blind)
#35404B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #40366a;
/* rgb */ color: rgb(64, 54, 106);
/* oklch */ color: oklch(37.0% 0.087 290.3);
Tailwind
colors: {
  custom: {
    50: '#776d95',
    500: '#40366a',
    950: '#000000',
  },
}
SCSS
$custom: #40366a;
$custom-light: #776d95;
$custom-dark: #000000;
JSON
{
  "hex": "#40366a",
  "rgb": {
    "r": 64,
    "g": 54,
    "b": 106
  },
  "hsl": {
    "h": 251.538,
    "s": 32.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36991,
    "c": 0.08723,
    "h": 290.3
  },
  "luminance": 0.04769
}

Semantic roles & 50–950 ramp

primary
#40366A
secondary
#909B61
accent
#C95FB4
background
#F7F6F9
surface
#EDEBF1
border
#C8C6CB
text
#09070D
muted
#7B7A7E

Preview Lab

Preview with #40366A

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

Preview Lab → · Contrast checker → · Palette generator →

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