#40248A#40248A

#40248A is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.158 H 288.6°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#40248A
RGBrgb(64, 36, 138)
HSLhsl(256, 59%, 34%)
HSVhsv(256, 74%, 54%)
CMYKcmyk(53.6%, 73.9%, 0%, 45.9%)
CIE-LABlab(24.28, 39.23, -52.14)
CIE-LCHlch(24.28, 65.25, 306.96°)
OKLaboklab(36.46% 0.0503 -0.1498)
OKLCHoklch(36.46% 0.158 288.6)
XYZxyz(7.3313, 4.1864, 24.4616)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40248A #6E8A24
analogous
#243B8A #40248A #73248A
triadic
#40248A #8A4024 #248A40
tetradic
#40248A #8A243B #6E8A24 #248A73
square
#40248A #8A243B #6E8A24 #248A73
split-complementary
#40248A #8A7324 #3B8A24
monochromatic
#130B29 #291759 #40248A #5731BB #7856D3

Accessibility & contrast

On white

11.43
#40248A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#40248A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40248A
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40248A#FFFFFF#000000##FFFFFF
##40248A1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003788
Tritanopia (blue-blind)
#243F54
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #40248a;
/* rgb */ color: rgb(64, 36, 138);
/* oklch */ color: oklch(36.5% 0.158 288.6);
Tailwind
colors: {
  custom: {
    50: '#7d61ad',
    500: '#40248a',
    950: '#000000',
  },
}
SCSS
$custom: #40248a;
$custom-light: #7d61ad;
$custom-dark: #000000;
JSON
{
  "hex": "#40248a",
  "rgb": {
    "r": 64,
    "g": 36,
    "b": 138
  },
  "hsl": {
    "h": 256.471,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36456,
    "c": 0.15802,
    "h": 288.6
  },
  "luminance": 0.04187
}

Semantic roles & 50–950 ramp

primary
#40248A
secondary
#9BB753
accent
#E246B7
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #40248A

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

Preview Lab → · Contrast checker → · Palette generator →

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