#40136A#40136A

#40136A is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.140 H 302.2°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#40136A
RGBrgb(64, 19, 106)
HSLhsl(271, 70%, 25%)
HSVhsv(271, 82%, 42%)
CMYKcmyk(39.6%, 82.1%, 0%, 58.4%)
CIE-LABlab(18.35, 38.64, -41.42)
CIE-LCHlch(18.35, 56.65, 313.01°)
OKLaboklab(31.37% 0.0743 -0.1182)
OKLCHoklch(31.37% 0.14 302.2)
XYZxyz(4.9481, 2.5963, 13.8733)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40136A #3D6A13
analogous
#14136A #40136A #6A1369
triadic
#40136A #6A4013 #136A40
tetradic
#40136A #6A1413 #3D6A13 #13696A
square
#40136A #6A1413 #3D6A13 #13696A
split-complementary
#40136A #696A13 #136A14
monochromatic
#10051A #210A36 #40136A #5F1C9E #7F26D2

Accessibility & contrast

On white

13.82
#40136A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#40136A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40136A
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40136A#FFFFFF#000000##FFFFFF
##40136A1.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6C
Deuteranopia (green-blind)
#002C68
Tritanopia (blue-blind)
#372A3E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #40136a;
/* rgb */ color: rgb(64, 19, 106);
/* oklch */ color: oklch(31.4% 0.140 302.2);
Tailwind
colors: {
  custom: {
    50: '#7a5795',
    500: '#40136a',
    950: '#000000',
  },
}
SCSS
$custom: #40136a;
$custom-light: #7a5795;
$custom-dark: #000000;
JSON
{
  "hex": "#40136a",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 106
  },
  "hsl": {
    "h": 271.034,
    "s": 69.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.31368,
    "c": 0.13965,
    "h": 302.2
  },
  "luminance": 0.02596
}

Semantic roles & 50–950 ramp

primary
#40136A
secondary
#6BA138
accent
#EC3B91
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030D
muted
#7C787E

Preview Lab

Preview with #40136A

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

Preview Lab → · Contrast checker → · Palette generator →

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