#40247C#40247C

#40247C is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.2% C 0.140 H 292.2°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#40247C
RGBrgb(64, 36, 124)
HSLhsl(259, 55%, 31%)
HSVhsv(259, 71%, 49%)
CMYKcmyk(48.4%, 71%, 0%, 51.4%)
CIE-LABlab(23.02, 35.03, -45.38)
CIE-LCHlch(23.02, 57.33, 307.66°)
OKLaboklab(35.17% 0.0531 -0.13)
OKLCHoklch(35.17% 0.14 292.2)
XYZxyz(6.3823, 3.8068, 19.4634)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40247C #607C24
analogous
#24347C #40247C #6C247C
triadic
#40247C #7C4024 #247C40
tetradic
#40247C #7C2434 #607C24 #247C6C
square
#40247C #7C2434 #607C24 #247C6C
split-complementary
#40247C #7C6C24 #347C24
monochromatic
#0F081D #28164D #40247C #5832AB #764FCC

Accessibility & contrast

On white

11.92
#40247C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#40247C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40247C
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40247C#FFFFFF#000000##FFFFFF
##40247C1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#00357A
Tritanopia (blue-blind)
#2E3A4D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #40247c;
/* rgb */ color: rgb(64, 36, 124);
/* oklch */ color: oklch(35.2% 0.140 292.2);
Tailwind
colors: {
  custom: {
    50: '#7b61a3',
    500: '#40247c',
    950: '#000000',
  },
}
SCSS
$custom: #40247c;
$custom-light: #7b61a3;
$custom-dark: #000000;
JSON
{
  "hex": "#40247c",
  "rgb": {
    "r": 64,
    "g": 36,
    "b": 124
  },
  "hsl": {
    "h": 259.091,
    "s": 55,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35173,
    "c": 0.14042,
    "h": 292.2
  },
  "luminance": 0.03807
}

Semantic roles & 50–950 ramp

primary
#40247C
secondary
#90AE4D
accent
#DE49AF
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #40247C

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

Preview Lab → · Contrast checker → · Palette generator →

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