#40199E#40199E

#40199E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.192 H 285.7°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#40199E
RGBrgb(64, 25, 158)
HSLhsl(258, 73%, 36%)
HSVhsv(258, 84%, 62%)
CMYKcmyk(59.5%, 84.2%, 0%, 38%)
CIE-LABlab(24.49, 50.21, -64.13)
CIE-LCHlch(24.49, 81.45, 308.06°)
OKLaboklab(37.21% 0.052 -0.1848)
OKLCHoklch(37.21% 0.192 285.7)
XYZxyz(8.6317, 4.2533, 32.7073)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40199E #779E19
analogous
#19349E #40199E #82199E
triadic
#40199E #9E4019 #199E40
tetradic
#40199E #9E1934 #779E19 #199E82
square
#40199E #9E1934 #779E19 #199E82
split-complementary
#40199E #9E8219 #349E19
monochromatic
#150834 #2B1169 #40199E #5521D3 #7A4EE3

Accessibility & contrast

On white

11.35
#40199E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#40199E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40199E
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40199E#FFFFFF#000000##FFFFFF
##40199E1.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#00369C
Tritanopia (blue-blind)
#08435E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #40199e;
/* rgb */ color: rgb(64, 25, 158);
/* oklch */ color: oklch(37.2% 0.192 285.7);
Tailwind
colors: {
  custom: {
    50: '#815dbc',
    500: '#40199e',
    950: '#000000',
  },
}
SCSS
$custom: #40199e;
$custom-light: #815dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#40199e",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 158
  },
  "hsl": {
    "h": 257.594,
    "s": 72.678,
    "l": 35.882
  },
  "oklch": {
    "l": 0.37214,
    "c": 0.19195,
    "h": 285.7
  },
  "luminance": 0.04254
}

Semantic roles & 50–950 ramp

primary
#40199E
secondary
#A2C54E
accent
#EF38BA
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #40199E

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

Preview Lab → · Contrast checker → · Palette generator →

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