#40196B#40196B

#40196B is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.134 H 300.7°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#40196B
RGBrgb(64, 25, 107)
HSLhsl(269, 62%, 26%)
HSVhsv(269, 77%, 42%)
CMYKcmyk(40.2%, 76.6%, 0%, 58%)
CIE-LABlab(19.42, 36.11, -40.33)
CIE-LCHlch(19.42, 54.13, 311.84°)
OKLaboklab(32.15% 0.0682 -0.1151)
OKLCHoklch(32.15% 0.134 300.7)
XYZxyz(5.1152, 2.8467, 14.1871)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40196B #446B19
analogous
#191B6B #40196B #69196B
triadic
#40196B #6B4019 #196B40
tetradic
#40196B #6B191B #446B19 #196B69
square
#40196B #6B191B #446B19 #196B69
split-complementary
#40196B #6B6919 #1B6B19
monochromatic
#0F0619 #220D39 #40196B #5E259D #7B30CE

Accessibility & contrast

On white

13.38
#40196B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#40196B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40196B
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40196B#FFFFFF#000000##FFFFFF
##40196B1.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6D
Deuteranopia (green-blind)
#002E69
Tritanopia (blue-blind)
#362D40
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #40196b;
/* rgb */ color: rgb(64, 25, 107);
/* oklch */ color: oklch(32.1% 0.134 300.7);
Tailwind
colors: {
  custom: {
    50: '#795a96',
    500: '#40196b',
    950: '#000000',
  },
}
SCSS
$custom: #40196b;
$custom-light: #795a96;
$custom-dark: #000000;
JSON
{
  "hex": "#40196b",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 107
  },
  "hsl": {
    "h": 268.537,
    "s": 62.121,
    "l": 25.882
  },
  "oklch": {
    "l": 0.32148,
    "c": 0.13376,
    "h": 300.7
  },
  "luminance": 0.02847
}

Semantic roles & 50–950 ramp

primary
#40196B
secondary
#72A13F
accent
#E54398
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #40196B

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

Preview Lab → · Contrast checker → · Palette generator →

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