#40289A#40289A

#40289A is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.173 H 284.4°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#40289A
RGBrgb(64, 40, 154)
HSLhsl(253, 59%, 38%)
HSVhsv(253, 74%, 60%)
CMYKcmyk(58.4%, 74%, 0%, 39.6%)
CIE-LABlab(26.56, 41.91, -58.27)
CIE-LCHlch(26.56, 71.78, 305.72°)
OKLaboklab(38.54% 0.0432 -0.1678)
OKLCHoklch(38.54% 0.173 284.4)
XYZxyz(8.7041, 4.9401, 31.0605)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40289A #829A28
analogous
#28499A #40289A #79289A
triadic
#40289A #9A4028 #289A40
tetradic
#40289A #9A2849 #829A28 #289A79
square
#40289A #9A2849 #829A28 #289A79
split-complementary
#40289A #9A7928 #499A28
monochromatic
#180F39 #2C1B69 #40289A #5435CA #7D65D7

Accessibility & contrast

On white

10.56
#40289A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#40289A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40289A
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40289A#FFFFFF#000000##FFFFFF
##40289A1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429D
Deuteranopia (green-blind)
#003B98
Tritanopia (blue-blind)
#0F475E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #40289a;
/* rgb */ color: rgb(64, 40, 154);
/* oklch */ color: oklch(38.5% 0.173 284.4);
Tailwind
colors: {
  custom: {
    50: '#7f65b9',
    500: '#40289a',
    950: '#000000',
  },
}
SCSS
$custom: #40289a;
$custom-light: #7f65b9;
$custom-dark: #000000;
JSON
{
  "hex": "#40289a",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 154
  },
  "hsl": {
    "h": 252.632,
    "s": 58.763,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38536,
    "c": 0.17329,
    "h": 284.4
  },
  "luminance": 0.04941
}

Semantic roles & 50–950 ramp

primary
#40289A
secondary
#AABD61
accent
#E246C1
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #40289A

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

Preview Lab → · Contrast checker → · Palette generator →

#40289A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva