#40136F#40136F

#40136F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.145 H 300.1°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#40136F
RGBrgb(64, 19, 111)
HSLhsl(269, 71%, 25%)
HSVhsv(269, 83%, 44%)
CMYKcmyk(42.3%, 82.9%, 0%, 56.5%)
CIE-LABlab(18.81, 39.94, -43.91)
CIE-LCHlch(18.81, 59.36, 312.29°)
OKLaboklab(31.84% 0.0728 -0.1256)
OKLCHoklch(31.84% 0.145 300.1)
XYZxyz(5.2157, 2.7034, 15.2829)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40136F #426F13
analogous
#13146F #40136F #6E136F
triadic
#40136F #6F4013 #136F40
tetradic
#40136F #6F1314 #426F13 #136F6E
square
#40136F #6F1314 #426F13 #136F6E
split-complementary
#40136F #6F6E13 #146F13
monochromatic
#0F041A #220A3B #40136F #5E1CA3 #7C25D8

Accessibility & contrast

On white

13.63
#40136F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#40136F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40136F
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40136F#FFFFFF#000000##FFFFFF
##40136F1.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D72
Deuteranopia (green-blind)
#002D6D
Tritanopia (blue-blind)
#352C41
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #40136f;
/* rgb */ color: rgb(64, 19, 111);
/* oklch */ color: oklch(31.8% 0.145 300.1);
Tailwind
colors: {
  custom: {
    50: '#7a5799',
    500: '#40136f',
    950: '#000000',
  },
}
SCSS
$custom: #40136f;
$custom-light: #7a5799;
$custom-dark: #000000;
JSON
{
  "hex": "#40136f",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 111
  },
  "hsl": {
    "h": 269.348,
    "s": 70.769,
    "l": 25.49
  },
  "oklch": {
    "l": 0.31836,
    "c": 0.14514,
    "h": 300.1
  },
  "luminance": 0.02703
}

Semantic roles & 50–950 ramp

primary
#40136F
secondary
#70A638
accent
#EE3A96
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #40136F

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

Preview Lab → · Contrast checker → · Palette generator →

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