#40249A#40249A

#40249A is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.178 H 285.1°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#40249A
RGBrgb(64, 36, 154)
HSLhsl(254, 62%, 37%)
HSVhsv(254, 77%, 60%)
CMYKcmyk(58.4%, 76.6%, 0%, 39.6%)
CIE-LABlab(25.82, 44.02, -59.50)
CIE-LCHlch(25.82, 74.02, 306.50°)
OKLaboklab(38.01% 0.0463 -0.1714)
OKLCHoklch(38.01% 0.178 285.1)
XYZxyz(8.5762, 4.6843, 31.0178)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40249A #7E9A24
analogous
#24439A #40249A #7B249A
triadic
#40249A #9A4024 #249A40
tetradic
#40249A #9A2443 #7E9A24 #249A7B
square
#40249A #9A2443 #7E9A24 #249A7B
split-complementary
#40249A #9A7B24 #439A24
monochromatic
#170D37 #2B1868 #40249A #5530CC #7C5FDA

Accessibility & contrast

On white

10.84
#40249A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#40249A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40249A
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40249A#FFFFFF#000000##FFFFFF
##40249A1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409D
Deuteranopia (green-blind)
#003998
Tritanopia (blue-blind)
#10455D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #40249a;
/* rgb */ color: rgb(64, 36, 154);
/* oklch */ color: oklch(38.0% 0.178 285.1);
Tailwind
colors: {
  custom: {
    50: '#8062b9',
    500: '#40249a',
    950: '#000000',
  },
}
SCSS
$custom: #40249a;
$custom-light: #8062b9;
$custom-dark: #000000;
JSON
{
  "hex": "#40249a",
  "rgb": {
    "r": 64,
    "g": 36,
    "b": 154
  },
  "hsl": {
    "h": 254.237,
    "s": 62.105,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38009,
    "c": 0.17752,
    "h": 285.1
  },
  "luminance": 0.04685
}

Semantic roles & 50–950 ramp

primary
#40249A
secondary
#A7BF5B
accent
#E543BF
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #40249A

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

Preview Lab → · Contrast checker → · Palette generator →

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