#40247E#40247E

#40247E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.4% C 0.143 H 291.7°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#40247E
RGBrgb(64, 36, 126)
HSLhsl(259, 56%, 32%)
HSVhsv(259, 71%, 49%)
CMYKcmyk(49.2%, 71.4%, 0%, 50.6%)
CIE-LABlab(23.20, 35.63, -46.37)
CIE-LCHlch(23.20, 58.47, 307.54°)
OKLaboklab(35.35% 0.0528 -0.1329)
OKLCHoklch(35.35% 0.143 291.7)
XYZxyz(6.5101, 3.8579, 20.1362)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40247E #627E24
analogous
#24357E #40247E #6D247E
triadic
#40247E #7E4024 #247E40
tetradic
#40247E #7E2435 #627E24 #247E6D
square
#40247E #7E2435 #627E24 #247E6D
split-complementary
#40247E #7E6D24 #357E24
monochromatic
#10091F #28164E #40247E #5832AE #7750CD

Accessibility & contrast

On white

11.85
#40247E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#40247E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40247E
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40247E#FFFFFF#000000##FFFFFF
##40247E1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#2D3B4E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #40247e;
/* rgb */ color: rgb(64, 36, 126);
/* oklch */ color: oklch(35.4% 0.143 291.7);
Tailwind
colors: {
  custom: {
    50: '#7b61a4',
    500: '#40247e',
    950: '#000000',
  },
}
SCSS
$custom: #40247e;
$custom-light: #7b61a4;
$custom-dark: #000000;
JSON
{
  "hex": "#40247e",
  "rgb": {
    "r": 64,
    "g": 36,
    "b": 126
  },
  "hsl": {
    "h": 258.667,
    "s": 55.556,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35351,
    "c": 0.14297,
    "h": 291.7
  },
  "luminance": 0.03858
}

Semantic roles & 50–950 ramp

primary
#40247E
secondary
#92B04E
accent
#DF49B0
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #40247E

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

Preview Lab → · Contrast checker → · Palette generator →

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