#40259F#40259F

#40259F is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.182 H 284.0°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#40259F
RGBrgb(64, 37, 159)
HSLhsl(253, 62%, 38%)
HSVhsv(253, 77%, 62%)
CMYKcmyk(59.7%, 76.7%, 0%, 37.6%)
CIE-LABlab(26.49, 45.01, -61.44)
CIE-LCHlch(26.49, 76.16, 306.22°)
OKLaboklab(38.64% 0.0442 -0.1771)
OKLCHoklch(38.64% 0.182 284)
XYZxyz(9.0320, 4.9157, 33.2671)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40259F #849F25
analogous
#25479F #40259F #7D259F
triadic
#40259F #9F4025 #259F40
tetradic
#40259F #9F2547 #849F25 #259F7D
square
#40259F #9F2547 #849F25 #259F7D
split-complementary
#40259F #9F7D25 #479F25
monochromatic
#180E3C #2C196D #40259F #5532CF #7E64DB

Accessibility & contrast

On white

10.59
#40259F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#40259F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40259F
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40259F#FFFFFF#000000##FFFFFF
##40259F1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A2
Deuteranopia (green-blind)
#003B9D
Tritanopia (blue-blind)
#034861
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #40259f;
/* rgb */ color: rgb(64, 37, 159);
/* oklch */ color: oklch(38.6% 0.182 284.0);
Tailwind
colors: {
  custom: {
    50: '#8163bd',
    500: '#40259f',
    950: '#000000',
  },
}
SCSS
$custom: #40259f;
$custom-light: #8163bd;
$custom-dark: #000000;
JSON
{
  "hex": "#40259f",
  "rgb": {
    "r": 64,
    "g": 37,
    "b": 159
  },
  "hsl": {
    "h": 253.279,
    "s": 62.245,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38635,
    "c": 0.18249,
    "h": 284
  },
  "luminance": 0.04916
}

Semantic roles & 50–950 ramp

primary
#40259F
secondary
#ABC05F
accent
#E542C1
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #40259F

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

Preview Lab → · Contrast checker → · Palette generator →

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