#40115E#40115E

#40115E is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.129 H 308.1°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#40115E
RGBrgb(64, 17, 94)
HSLhsl(277, 69%, 22%)
HSVhsv(277, 82%, 37%)
CMYKcmyk(31.9%, 81.9%, 0%, 63.1%)
CIE-LABlab(16.98, 36.47, -35.72)
CIE-LCHlch(16.98, 51.04, 315.59°)
OKLaboklab(30.08% 0.0794 -0.1015)
OKLCHoklch(30.08% 0.129 308.1)
XYZxyz(4.3348, 2.2991, 10.8029)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40115E #2F5E11
analogous
#1A115E #40115E #5E1156
triadic
#40115E #5E4011 #115E40
tetradic
#40115E #5E1A11 #2F5E11 #11565E
square
#40115E #5E1A11 #2F5E11 #11565E
split-complementary
#40115E #565E11 #115E1A
monochromatic
#12051A #1D082A #40115E #631A92 #8724C6

Accessibility & contrast

On white

14.39
#40115E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#40115E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40115E
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40115E#FFFFFF#000000##FFFFFF
##40115E1.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002860
Deuteranopia (green-blind)
#002A5C
Tritanopia (blue-blind)
#3B2437
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #40115e;
/* rgb */ color: rgb(64, 17, 94);
/* oklch */ color: oklch(30.1% 0.129 308.1);
Tailwind
colors: {
  custom: {
    50: '#79558c',
    500: '#40115e',
    950: '#000000',
  },
}
SCSS
$custom: #40115e;
$custom-light: #79558c;
$custom-dark: #000000;
JSON
{
  "hex": "#40115e",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 94
  },
  "hsl": {
    "h": 276.623,
    "s": 69.369,
    "l": 21.765
  },
  "oklch": {
    "l": 0.30079,
    "c": 0.12886,
    "h": 308.1
  },
  "luminance": 0.02299
}

Semantic roles & 50–950 ramp

primary
#40115E
secondary
#5B9734
accent
#EC3C80
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #40115E

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

Preview Lab → · Contrast checker → · Palette generator →

#40115E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva