#40246A#40246A

#40246A is a dark, moderate violet. Relative luminance 0.034; OKLCH L 33.7% C 0.117 H 298.3°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#40246A
RGBrgb(64, 36, 106)
HSLhsl(264, 49%, 28%)
HSVhsv(264, 66%, 42%)
CMYKcmyk(39.6%, 66%, 0%, 58.4%)
CIE-LABlab(21.55, 29.72, -36.22)
CIE-LCHlch(21.55, 46.85, 309.37°)
OKLaboklab(33.65% 0.0554 -0.103)
OKLCHoklch(33.65% 0.117 298.3)
XYZxyz(5.3461, 3.3923, 14.0060)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40246A #4E6A24
analogous
#242B6A #40246A #63246A
triadic
#40246A #6A4024 #246A40
tetradic
#40246A #6A242B #4E6A24 #246A63
square
#40246A #6A242B #4E6A24 #246A63
split-complementary
#40246A #6A6324 #2B6A24
monochromatic
#0E0817 #24143C #40246A #5C3498 #7848C1

Accessibility & contrast

On white

12.51
#40246A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#40246A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40246A
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40246A#FFFFFF#000000##FFFFFF
##40246A1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346C
Deuteranopia (green-blind)
#043368
Tritanopia (blue-blind)
#363343
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #40246a;
/* rgb */ color: rgb(64, 36, 106);
/* oklch */ color: oklch(33.7% 0.117 298.3);
Tailwind
colors: {
  custom: {
    50: '#786095',
    500: '#40246a',
    950: '#000000',
  },
}
SCSS
$custom: #40246a;
$custom-light: #786095;
$custom-dark: #000000;
JSON
{
  "hex": "#40246a",
  "rgb": {
    "r": 64,
    "g": 36,
    "b": 106
  },
  "hsl": {
    "h": 264,
    "s": 49.296,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3365,
    "c": 0.117,
    "h": 298.3
  },
  "luminance": 0.03392
}

Semantic roles & 50–950 ramp

primary
#40246A
secondary
#7D9D4D
accent
#D94FA2
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09050D
muted
#7B797E

Preview Lab

Preview with #40246A

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

Preview Lab → · Contrast checker → · Palette generator →

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