#40196D#40196D

#40196D is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.136 H 299.8°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#40196D
RGBrgb(64, 25, 109)
HSLhsl(268, 63%, 26%)
HSVhsv(268, 77%, 43%)
CMYKcmyk(41.3%, 77.1%, 0%, 57.3%)
CIE-LABlab(19.59, 36.65, -41.34)
CIE-LCHlch(19.59, 55.25, 311.56°)
OKLaboklab(32.33% 0.0677 -0.118)
OKLCHoklch(32.33% 0.136 299.8)
XYZxyz(5.2216, 2.8893, 14.7476)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40196D #466D19
analogous
#191C6D #40196D #6A196D
triadic
#40196D #6D4019 #196D40
tetradic
#40196D #6D191C #466D19 #196D6A
square
#40196D #6D191C #466D19 #196D6A
split-complementary
#40196D #6D6A19 #1C6D19
monochromatic
#0F0619 #230E3B #40196D #5D249F #7B31D0

Accessibility & contrast

On white

13.31
#40196D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40196D
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40196D#FFFFFF#000000##FFFFFF
##40196D1.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6F
Deuteranopia (green-blind)
#002F6B
Tritanopia (blue-blind)
#362E41
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #40196d;
/* rgb */ color: rgb(64, 25, 109);
/* oklch */ color: oklch(32.3% 0.136 299.8);
Tailwind
colors: {
  custom: {
    50: '#7a5a98',
    500: '#40196d',
    950: '#000000',
  },
}
SCSS
$custom: #40196d;
$custom-light: #7a5a98;
$custom-dark: #000000;
JSON
{
  "hex": "#40196d",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 109
  },
  "hsl": {
    "h": 267.857,
    "s": 62.687,
    "l": 26.275
  },
  "oklch": {
    "l": 0.32327,
    "c": 0.1361,
    "h": 299.8
  },
  "luminance": 0.02889
}

Semantic roles & 50–950 ramp

primary
#40196D
secondary
#74A23F
accent
#E6429A
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #40196D

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

Preview Lab → · Contrast checker → · Palette generator →

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