#40196E#40196E

#40196E is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.137 H 299.5°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#40196E
RGBrgb(64, 25, 110)
HSLhsl(268, 63%, 26%)
HSVhsv(268, 77%, 43%)
CMYKcmyk(41.8%, 77.3%, 0%, 56.9%)
CIE-LABlab(19.68, 36.92, -41.84)
CIE-LCHlch(19.68, 55.80, 311.42°)
OKLaboklab(32.42% 0.0675 -0.1195)
OKLCHoklch(32.42% 0.137 299.5)
XYZxyz(5.2757, 2.9110, 15.0327)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40196E #476E19
analogous
#191D6E #40196E #6B196E
triadic
#40196E #6E4019 #196E40
tetradic
#40196E #6E191D #476E19 #196E6B
square
#40196E #6E191D #476E19 #196E6B
split-complementary
#40196E #6E6B19 #1D6E19
monochromatic
#0F0619 #230E3C #40196E #5D24A0 #7A31D0

Accessibility & contrast

On white

13.27
#40196E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#40196E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40196E
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40196E#FFFFFF#000000##FFFFFF
##40196E1.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F70
Deuteranopia (green-blind)
#002F6C
Tritanopia (blue-blind)
#352F42
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #40196e;
/* rgb */ color: rgb(64, 25, 110);
/* oklch */ color: oklch(32.4% 0.137 299.5);
Tailwind
colors: {
  custom: {
    50: '#7a5a98',
    500: '#40196e',
    950: '#000000',
  },
}
SCSS
$custom: #40196e;
$custom-light: #7a5a98;
$custom-dark: #000000;
JSON
{
  "hex": "#40196e",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 110
  },
  "hsl": {
    "h": 267.529,
    "s": 62.963,
    "l": 26.471
  },
  "oklch": {
    "l": 0.32417,
    "c": 0.13727,
    "h": 299.5
  },
  "luminance": 0.02911
}

Semantic roles & 50–950 ramp

primary
#40196E
secondary
#76A33F
accent
#E6429B
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #40196E

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

Preview Lab → · Contrast checker → · Palette generator →

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