#40196F#40196F

#40196F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.138 H 299.1°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#40196F
RGBrgb(64, 25, 111)
HSLhsl(267, 63%, 27%)
HSVhsv(267, 77%, 44%)
CMYKcmyk(42.3%, 77.5%, 0%, 56.5%)
CIE-LABlab(19.77, 37.19, -42.35)
CIE-LCHlch(19.77, 56.36, 311.29°)
OKLaboklab(32.51% 0.0673 -0.121)
OKLCHoklch(32.51% 0.138 299.1)
XYZxyz(5.3305, 2.9329, 15.3211)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40196F #486F19
analogous
#191D6F #40196F #6B196F
triadic
#40196F #6F4019 #196F40
tetradic
#40196F #6F191D #486F19 #196F6B
square
#40196F #6F191D #486F19 #196F6B
split-complementary
#40196F #6F6B19 #1D6F19
monochromatic
#0E0619 #230E3D #40196F #5D24A1 #7A32D1

Accessibility & contrast

On white

13.24
#40196F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#40196F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40196F
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40196F#FFFFFF#000000##FFFFFF
##40196F1.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40196f;
/* rgb */ color: rgb(64, 25, 111);
/* oklch */ color: oklch(32.5% 0.138 299.1);
Tailwind
colors: {
  custom: {
    50: '#7a5a99',
    500: '#40196f',
    950: '#000000',
  },
}
SCSS
$custom: #40196f;
$custom-light: #7a5a99;
$custom-dark: #000000;
JSON
{
  "hex": "#40196f",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 111
  },
  "hsl": {
    "h": 267.209,
    "s": 63.235,
    "l": 26.667
  },
  "oklch": {
    "l": 0.32508,
    "c": 0.13845,
    "h": 299.1
  },
  "luminance": 0.02933
}

Semantic roles & 50–950 ramp

primary
#40196F
secondary
#77A43F
accent
#E6429C
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #40196F

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

Preview Lab → · Contrast checker → · Palette generator →

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