#40249C#40249C

#40249C is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.180 H 284.7°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#40249C
RGBrgb(64, 36, 156)
HSLhsl(254, 63%, 38%)
HSVhsv(254, 77%, 61%)
CMYKcmyk(59%, 76.9%, 0%, 38.8%)
CIE-LABlab(26.01, 44.62, -60.40)
CIE-LCHlch(26.01, 75.09, 306.45°)
OKLaboklab(38.21% 0.0457 -0.174)
OKLCHoklch(38.21% 0.18 284.7)
XYZxyz(8.7441, 4.7515, 31.9024)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40249C #809C24
analogous
#24449C #40249C #7C249C
triadic
#40249C #9C4024 #249C40
tetradic
#40249C #9C2444 #809C24 #249C7C
square
#40249C #9C2444 #809C24 #249C7C
split-complementary
#40249C #9C7C24 #449C24
monochromatic
#170D39 #2C196A #40249C #542FCE #7D60DA

Accessibility & contrast

On white

10.77
#40249C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#40249C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40249C
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40249C#FFFFFF#000000##FFFFFF
##40249C1.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)
#00419F
Deuteranopia (green-blind)
#003A9A
Tritanopia (blue-blind)
#0C465F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #40249c;
/* rgb */ color: rgb(64, 36, 156);
/* oklch */ color: oklch(38.2% 0.180 284.7);
Tailwind
colors: {
  custom: {
    50: '#8062ba',
    500: '#40249c',
    950: '#000000',
  },
}
SCSS
$custom: #40249c;
$custom-light: #8062ba;
$custom-dark: #000000;
JSON
{
  "hex": "#40249c",
  "rgb": {
    "r": 64,
    "g": 36,
    "b": 156
  },
  "hsl": {
    "h": 254,
    "s": 62.5,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38209,
    "c": 0.17991,
    "h": 284.7
  },
  "luminance": 0.04752
}

Semantic roles & 50–950 ramp

primary
#40249C
secondary
#A8BF5C
accent
#E642BF
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #40249C

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

Preview Lab → · Contrast checker → · Palette generator →

#40249C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva