#40249E#40249E

#40249E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.182 H 284.4°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#40249E
RGBrgb(64, 36, 158)
HSLhsl(254, 63%, 38%)
HSVhsv(254, 77%, 62%)
CMYKcmyk(59.5%, 77.2%, 0%, 38%)
CIE-LABlab(26.22, 45.21, -61.29)
CIE-LCHlch(26.22, 76.16, 306.42°)
OKLaboklab(38.41% 0.0452 -0.1766)
OKLCHoklch(38.41% 0.182 284.4)
XYZxyz(8.9149, 4.8198, 32.8017)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40249E #829E24
analogous
#24459E #40249E #7D249E
triadic
#40249E #9E4024 #249E40
tetradic
#40249E #9E2445 #829E24 #249E7D
square
#40249E #9E2445 #829E24 #249E7D
split-complementary
#40249E #9E7D24 #459E24
monochromatic
#180D3A #2C196C #40249E #542FD0 #7D61DB

Accessibility & contrast

On white

10.69
#40249E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#40249E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40249E
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40249E#FFFFFF#000000##FFFFFF
##40249E1.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A1
Deuteranopia (green-blind)
#003A9C
Tritanopia (blue-blind)
#064760
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #40249e;
/* rgb */ color: rgb(64, 36, 158);
/* oklch */ color: oklch(38.4% 0.182 284.4);
Tailwind
colors: {
  custom: {
    50: '#8062bc',
    500: '#40249e',
    950: '#000000',
  },
}
SCSS
$custom: #40249e;
$custom-light: #8062bc;
$custom-dark: #000000;
JSON
{
  "hex": "#40249e",
  "rgb": {
    "r": 64,
    "g": 36,
    "b": 158
  },
  "hsl": {
    "h": 253.77,
    "s": 62.887,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38409,
    "c": 0.18229,
    "h": 284.4
  },
  "luminance": 0.0482
}

Semantic roles & 50–950 ramp

primary
#40249E
secondary
#AAC05E
accent
#E642C0
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #40249E

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

Preview Lab → · Contrast checker → · Palette generator →

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