#40146E#40146E

#40146E is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.143 H 300.3°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#40146E
RGBrgb(64, 20, 110)
HSLhsl(269, 69%, 25%)
HSVhsv(269, 82%, 43%)
CMYKcmyk(41.8%, 81.8%, 0%, 56.9%)
CIE-LABlab(18.87, 39.25, -43.18)
CIE-LCHlch(18.87, 58.35, 312.27°)
OKLaboklab(31.85% 0.0723 -0.1234)
OKLCHoklch(31.85% 0.143 300.3)
XYZxyz(5.1783, 2.7160, 15.0003)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40146E #426E14
analogous
#14156E #40146E #6D146E
triadic
#40146E #6E4014 #146E40
tetradic
#40146E #6E1415 #426E14 #146E6D
square
#40146E #6E1415 #426E14 #146E6D
split-complementary
#40146E #6E6D14 #156E14
monochromatic
#0F051A #220B3A #40146E #5E1DA2 #7C27D6

Accessibility & contrast

On white

13.61
#40146E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#40146E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40146E
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40146E#FFFFFF#000000##FFFFFF
##40146E1.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40146e;
/* rgb */ color: rgb(64, 20, 110);
/* oklch */ color: oklch(31.8% 0.143 300.3);
Tailwind
colors: {
  custom: {
    50: '#7a5798',
    500: '#40146e',
    950: '#000000',
  },
}
SCSS
$custom: #40146e;
$custom-light: #7a5798;
$custom-dark: #000000;
JSON
{
  "hex": "#40146e",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 110
  },
  "hsl": {
    "h": 269.333,
    "s": 69.231,
    "l": 25.49
  },
  "oklch": {
    "l": 0.31845,
    "c": 0.143,
    "h": 300.3
  },
  "luminance": 0.02716
}

Semantic roles & 50–950 ramp

primary
#40146E
secondary
#70A539
accent
#EC3C96
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #40146E

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

Preview Lab → · Contrast checker → · Palette generator →

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