#40259A#40259A

#40259A is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.176 H 285.0°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#40259A
RGBrgb(64, 37, 154)
HSLhsl(254, 61%, 37%)
HSVhsv(254, 76%, 60%)
CMYKcmyk(58.4%, 76%, 0%, 39.6%)
CIE-LABlab(26.00, 43.50, -59.20)
CIE-LCHlch(26.00, 73.47, 306.31°)
OKLaboklab(38.14% 0.0455 -0.1705)
OKLCHoklch(38.14% 0.176 285)
XYZxyz(8.6069, 4.7457, 31.0281)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40259A #7F9A25
analogous
#25459A #40259A #7A259A
triadic
#40259A #9A4025 #259A40
tetradic
#40259A #9A2545 #7F9A25 #259A7A
square
#40259A #9A2545 #7F9A25 #259A7A
split-complementary
#40259A #9A7A25 #459A25
monochromatic
#170D37 #2B1969 #40259A #5531CB #7C60D9

Accessibility & contrast

On white

10.77
#40259A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#40259A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40259A
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40259A#FFFFFF#000000##FFFFFF
##40259A1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419D
Deuteranopia (green-blind)
#003A98
Tritanopia (blue-blind)
#10465E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #40259a;
/* rgb */ color: rgb(64, 37, 154);
/* oklch */ color: oklch(38.1% 0.176 285.0);
Tailwind
colors: {
  custom: {
    50: '#8063b9',
    500: '#40259a',
    950: '#000000',
  },
}
SCSS
$custom: #40259a;
$custom-light: #8063b9;
$custom-dark: #000000;
JSON
{
  "hex": "#40259a",
  "rgb": {
    "r": 64,
    "g": 37,
    "b": 154
  },
  "hsl": {
    "h": 253.846,
    "s": 61.257,
    "l": 37.451
  },
  "oklch": {
    "l": 0.38137,
    "c": 0.17649,
    "h": 285
  },
  "luminance": 0.04746
}

Semantic roles & 50–950 ramp

primary
#40259A
secondary
#A8BE5D
accent
#E443BF
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #40259A

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

Preview Lab → · Contrast checker → · Palette generator →

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