#240841#240841

#240841 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.3% C 0.100 H 300.6°. Best body text is #FFFFFF at 17.71:1 contrast (WCAG AA passes).

Color values

HEX#240841
RGBrgb(36, 8, 65)
HSLhsl(269, 78%, 14%)
HSVhsv(269, 88%, 25%)
CMYKcmyk(44.6%, 87.7%, 0%, 74.5%)
CIE-LABlab(8.40, 27.33, -29.97)
CIE-LCHlch(8.40, 40.55, 312.36°)
OKLaboklab(22.27% 0.0507 -0.0856)
OKLCHoklch(22.27% 0.1 300.6)
XYZxyz(1.7683, 0.9304, 5.0864)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240841 #254108
analogous
#080841 #240841 #410841
triadic
#240841 #412408 #084124
tetradic
#240841 #410808 #254108 #084141
square
#240841 #410808 #254108 #084141
split-complementary
#240841 #414108 #084108
monochromatic
#0F031B #0F031B #240841 #420F77 #6015AE

Accessibility & contrast

On white

17.71
#240841 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#240841 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240841
17.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240841#FFFFFF#000000##FFFFFF
##2408411.0017.711.1917.71
#FFFFFF17.711.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001843
Deuteranopia (green-blind)
#001840
Tritanopia (blue-blind)
#1D1724
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #240841;
/* rgb */ color: rgb(36, 8, 65);
/* oklch */ color: oklch(22.3% 0.100 300.6);
Tailwind
colors: {
  custom: {
    50: '#634b76',
    500: '#240841',
    950: '#000000',
  },
}
SCSS
$custom: #240841;
$custom-light: #634b76;
$custom-dark: #000000;
JSON
{
  "hex": "#240841",
  "rgb": {
    "r": 36,
    "g": 8,
    "b": 65
  },
  "hsl": {
    "h": 269.474,
    "s": 78.082,
    "l": 14.314
  },
  "oklch": {
    "l": 0.22274,
    "c": 0.09952,
    "h": 300.6
  },
  "luminance": 0.0093
}

Semantic roles & 50–950 ramp

primary
#240841
secondary
#537F25
accent
#F53396
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050108
muted
#7A777B

Preview Lab

Preview with #240841

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

Preview Lab → · Contrast checker → · Palette generator →

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