#40289F#40289F

#40289F is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.179 H 283.6°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#40289F
RGBrgb(64, 40, 159)
HSLhsl(252, 60%, 39%)
HSVhsv(252, 75%, 62%)
CMYKcmyk(59.7%, 74.8%, 0%, 37.6%)
CIE-LABlab(27.05, 43.44, -60.53)
CIE-LCHlch(27.05, 74.50, 305.66°)
OKLaboklab(39.02% 0.042 -0.1744)
OKLCHoklch(39.02% 0.179 283.6)
XYZxyz(9.1292, 5.1102, 33.2995)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40289F #879F28
analogous
#284C9F #40289F #7C289F
triadic
#40289F #9F4028 #289F40
tetradic
#40289F #9F284C #879F28 #289F7C
square
#40289F #9F284C #879F28 #289F7C
split-complementary
#40289F #9F7C28 #4C9F28
monochromatic
#190F3D #2C1C6E #40289F #5637CD #7F68D9

Accessibility & contrast

On white

10.38
#40289F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#40289F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40289F
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40289F#FFFFFF#000000##FFFFFF
##40289F1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#003C9D
Tritanopia (blue-blind)
#024961
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #40289f;
/* rgb */ color: rgb(64, 40, 159);
/* oklch */ color: oklch(39.0% 0.179 283.6);
Tailwind
colors: {
  custom: {
    50: '#8065bc',
    500: '#40289f',
    950: '#000000',
  },
}
SCSS
$custom: #40289f;
$custom-light: #8065bc;
$custom-dark: #000000;
JSON
{
  "hex": "#40289f",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 159
  },
  "hsl": {
    "h": 252.101,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.39024,
    "c": 0.17941,
    "h": 283.6
  },
  "luminance": 0.05111
}

Semantic roles & 50–950 ramp

primary
#40289F
secondary
#ADBF64
accent
#E345C3
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #40289F

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

Preview Lab → · Contrast checker → · Palette generator →

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