#40136C#40136C

#40136C is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.142 H 301.3°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#40136C
RGBrgb(64, 19, 108)
HSLhsl(270, 70%, 25%)
HSVhsv(270, 82%, 42%)
CMYKcmyk(40.7%, 82.4%, 0%, 57.6%)
CIE-LABlab(18.53, 39.16, -42.42)
CIE-LCHlch(18.53, 57.73, 312.71°)
OKLaboklab(31.55% 0.0737 -0.1212)
OKLCHoklch(31.55% 0.142 301.3)
XYZxyz(5.0533, 2.6384, 14.4275)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40136C #3F6C13
analogous
#13136C #40136C #6C136C
triadic
#40136C #6C4013 #136C40
tetradic
#40136C #6C1313 #3F6C13 #136C6C
square
#40136C #6C1313 #3F6C13 #136C6C
split-complementary
#40136C #6C6C13 #136C13
monochromatic
#0F051A #210A38 #40136C #5F1CA0 #7E25D4

Accessibility & contrast

On white

13.75
#40136C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#40136C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40136C
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40136C#FFFFFF#000000##FFFFFF
##40136C1.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6E
Deuteranopia (green-blind)
#002D6A
Tritanopia (blue-blind)
#362B3F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #40136c;
/* rgb */ color: rgb(64, 19, 108);
/* oklch */ color: oklch(31.6% 0.142 301.3);
Tailwind
colors: {
  custom: {
    50: '#7a5797',
    500: '#40136c',
    950: '#000000',
  },
}
SCSS
$custom: #40136c;
$custom-light: #7a5797;
$custom-dark: #000000;
JSON
{
  "hex": "#40136c",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 108
  },
  "hsl": {
    "h": 270.337,
    "s": 70.079,
    "l": 24.902
  },
  "oklch": {
    "l": 0.31554,
    "c": 0.14185,
    "h": 301.3
  },
  "luminance": 0.02638
}

Semantic roles & 50–950 ramp

primary
#40136C
secondary
#6DA338
accent
#ED3B93
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030D
muted
#7C787E

Preview Lab

Preview with #40136C

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

Preview Lab → · Contrast checker → · Palette generator →

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