#40259E#40259E

#40259E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.181 H 284.2°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#40259E
RGBrgb(64, 37, 158)
HSLhsl(253, 62%, 38%)
HSVhsv(253, 77%, 62%)
CMYKcmyk(59.5%, 76.6%, 0%, 38%)
CIE-LABlab(26.39, 44.71, -60.99)
CIE-LCHlch(26.39, 75.62, 306.24°)
OKLaboklab(38.54% 0.0445 -0.1757)
OKLCHoklch(38.54% 0.181 284.2)
XYZxyz(8.9456, 4.8812, 32.8119)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40259E #839E25
analogous
#25479E #40259E #7C259E
triadic
#40259E #9E4025 #259E40
tetradic
#40259E #9E2547 #839E25 #259E7C
square
#40259E #9E2547 #839E25 #259E7C
split-complementary
#40259E #9E7C25 #479E25
monochromatic
#180E3B #2C196C #40259E #5431CF #7E63DA

Accessibility & contrast

On white

10.63
#40259E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40259E
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40259E#FFFFFF#000000##FFFFFF
##40259E1.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#003A9C
Tritanopia (blue-blind)
#064760
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #40259e;
/* rgb */ color: rgb(64, 37, 158);
/* oklch */ color: oklch(38.5% 0.181 284.2);
Tailwind
colors: {
  custom: {
    50: '#8063bc',
    500: '#40259e',
    950: '#000000',
  },
}
SCSS
$custom: #40259e;
$custom-light: #8063bc;
$custom-dark: #000000;
JSON
{
  "hex": "#40259e",
  "rgb": {
    "r": 64,
    "g": 37,
    "b": 158
  },
  "hsl": {
    "h": 253.388,
    "s": 62.051,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38535,
    "c": 0.18129,
    "h": 284.2
  },
  "luminance": 0.04882
}

Semantic roles & 50–950 ramp

primary
#40259E
secondary
#AAC05F
accent
#E543C1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #40259E

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

Preview Lab → · Contrast checker → · Palette generator →

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