#40189F#40189F

#40189F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.2% C 0.194 H 285.6°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#40189F
RGBrgb(64, 24, 159)
HSLhsl(258, 74%, 36%)
HSVhsv(258, 85%, 62%)
CMYKcmyk(59.7%, 84.9%, 0%, 37.6%)
CIE-LABlab(24.47, 50.88, -64.78)
CIE-LCHlch(24.47, 82.37, 308.15°)
OKLaboklab(37.23% 0.0521 -0.1866)
OKLCHoklch(37.23% 0.194 285.6)
XYZxyz(8.6971, 4.2459, 33.1554)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40189F #779F18
analogous
#18339F #40189F #83189F
triadic
#40189F #9F4018 #189F40
tetradic
#40189F #9F1833 #779F18 #189F83
square
#40189F #9F1833 #779F18 #189F83
split-complementary
#40189F #9F8318 #339F18
monochromatic
#150835 #2B106A #40189F #5520D4 #7A4DE4

Accessibility & contrast

On white

11.36
#40189F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#40189F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40189F
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40189F#FFFFFF#000000##FFFFFF
##40189F1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00369D
Tritanopia (blue-blind)
#06435E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #40189f;
/* rgb */ color: rgb(64, 24, 159);
/* oklch */ color: oklch(37.2% 0.194 285.6);
Tailwind
colors: {
  custom: {
    50: '#825dbd',
    500: '#40189f',
    950: '#000000',
  },
}
SCSS
$custom: #40189f;
$custom-light: #825dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#40189f",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 159
  },
  "hsl": {
    "h": 257.778,
    "s": 73.77,
    "l": 35.882
  },
  "oklch": {
    "l": 0.3723,
    "c": 0.1938,
    "h": 285.6
  },
  "luminance": 0.04246
}

Semantic roles & 50–950 ramp

primary
#40189F
secondary
#A2C64D
accent
#F037BA
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0412
muted
#7D7981

Preview Lab

Preview with #40189F

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

Preview Lab → · Contrast checker → · Palette generator →

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