#240541#240541

#240541 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.9% C 0.104 H 301.5°. Best body text is #FFFFFF at 17.90:1 contrast (WCAG AA passes).

Color values

HEX#240541
RGBrgb(36, 5, 65)
HSLhsl(271, 86%, 14%)
HSVhsv(271, 92%, 25%)
CMYKcmyk(44.6%, 92.3%, 0%, 74.5%)
CIE-LABlab(7.82, 29.01, -30.92)
CIE-LCHlch(7.82, 42.40, 313.18°)
OKLaboklab(21.87% 0.0542 -0.0884)
OKLCHoklch(21.87% 0.104 301.5)
XYZxyz(1.7357, 0.8653, 5.0756)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240541 #224105
analogous
#060541 #240541 #410540
triadic
#240541 #412405 #054124
tetradic
#240541 #410605 #224105 #054041
square
#240541 #410605 #224105 #054041
split-complementary
#240541 #404105 #054106
monochromatic
#10021C #10021C #240541 #43097A #630EB3

Accessibility & contrast

On white

17.90
#240541 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#240541 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240541
17.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240541#FFFFFF#000000##FFFFFF
##2405411.0017.901.1717.90
#FFFFFF17.901.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001743
Deuteranopia (green-blind)
#001740
Tritanopia (blue-blind)
#1D1623
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #240541;
/* rgb */ color: rgb(36, 5, 65);
/* oklch */ color: oklch(21.9% 0.104 301.5);
Tailwind
colors: {
  custom: {
    50: '#634976',
    500: '#240541',
    950: '#000000',
  },
}
SCSS
$custom: #240541;
$custom-light: #634976;
$custom-dark: #000000;
JSON
{
  "hex": "#240541",
  "rgb": {
    "r": 36,
    "g": 5,
    "b": 65
  },
  "hsl": {
    "h": 271,
    "s": 85.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.21869,
    "c": 0.10366,
    "h": 301.5
  },
  "luminance": 0.00865
}

Semantic roles & 50–950 ramp

primary
#240541
secondary
#4F8120
accent
#FC2C90
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050108
muted
#7A777B

Preview Lab

Preview with #240541

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

Preview Lab → · Contrast checker → · Palette generator →

#240541 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva