#40135D#40135D

#40135D is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.125 H 308.2°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#40135D
RGBrgb(64, 19, 93)
HSLhsl(276, 66%, 22%)
HSVhsv(276, 80%, 36%)
CMYKcmyk(31.2%, 79.6%, 0%, 63.5%)
CIE-LABlab(17.21, 35.34, -34.69)
CIE-LCHlch(17.21, 49.52, 315.53°)
OKLaboklab(30.21% 0.0776 -0.0985)
OKLCHoklch(30.21% 0.125 308.2)
XYZxyz(4.3226, 2.3461, 10.5789)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40135D #305D13
analogous
#1B135D #40135D #5D1355
triadic
#40135D #5D4013 #135D40
tetradic
#40135D #5D1B13 #305D13 #13555D
square
#40135D #5D1B13 #305D13 #13555D
split-complementary
#40135D #555D13 #135D1B
monochromatic
#110519 #1D092A #40135D #631D90 #8628C3

Accessibility & contrast

On white

14.29
#40135D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#40135D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40135D
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40135D#FFFFFF#000000##FFFFFF
##40135D1.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295F
Deuteranopia (green-blind)
#002B5B
Tritanopia (blue-blind)
#3B2537
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #40135d;
/* rgb */ color: rgb(64, 19, 93);
/* oklch */ color: oklch(30.2% 0.125 308.2);
Tailwind
colors: {
  custom: {
    50: '#78568b',
    500: '#40135d',
    950: '#000000',
  },
}
SCSS
$custom: #40135d;
$custom-light: #78568b;
$custom-dark: #000000;
JSON
{
  "hex": "#40135d",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 93
  },
  "hsl": {
    "h": 276.486,
    "s": 66.071,
    "l": 21.961
  },
  "oklch": {
    "l": 0.3021,
    "c": 0.12537,
    "h": 308.2
  },
  "luminance": 0.02346
}

Semantic roles & 50–950 ramp

primary
#40135D
secondary
#5C9537
accent
#E93F82
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #40135D

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

Preview Lab → · Contrast checker → · Palette generator →

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