#40366D#40366D

#40366D is a dark, moderate violet. Relative luminance 0.048; OKLCH L 37.2% C 0.092 H 289.5°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#40366D
RGBrgb(64, 54, 109)
HSLhsl(251, 34%, 32%)
HSVhsv(251, 50%, 43%)
CMYKcmyk(41.3%, 50.5%, 0%, 57.3%)
CIE-LABlab(26.25, 19.08, -30.61)
CIE-LCHlch(26.25, 36.07, 301.94°)
OKLaboklab(37.19% 0.0307 -0.0866)
OKLCHoklch(37.19% 0.092 289.5)
XYZxyz(6.1931, 4.8323, 15.0715)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40366D #636D36
analogous
#36486D #40366D #5C366D
triadic
#40366D #6D4036 #366D40
tetradic
#40366D #6D3648 #636D36 #366D5C
square
#40366D #6D3648 #636D36 #366D5C
split-complementary
#40366D #6D5C36 #486D36
monochromatic
#100D1B #282244 #40366D #584A96 #7769B5

Accessibility & contrast

On white

10.68
#40366D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40366D
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40366D#FFFFFF#000000##FFFFFF
##40366D1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#213F6F
Deuteranopia (green-blind)
#223D6C
Tritanopia (blue-blind)
#34414C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #40366d;
/* rgb */ color: rgb(64, 54, 109);
/* oklch */ color: oklch(37.2% 0.092 289.5);
Tailwind
colors: {
  custom: {
    50: '#776d97',
    500: '#40366d',
    950: '#000000',
  },
}
SCSS
$custom: #40366d;
$custom-light: #776d97;
$custom-dark: #000000;
JSON
{
  "hex": "#40366d",
  "rgb": {
    "r": 64,
    "g": 54,
    "b": 109
  },
  "hsl": {
    "h": 250.909,
    "s": 33.742,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37191,
    "c": 0.09184,
    "h": 289.5
  },
  "luminance": 0.04832
}

Semantic roles & 50–950 ramp

primary
#40366D
secondary
#939D61
accent
#CA5EB6
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#09070D
muted
#7B7A7E

Preview Lab

Preview with #40366D

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

Preview Lab → · Contrast checker → · Palette generator →

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