#240440#240440

#240440 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.6% C 0.104 H 302.4°. Best body text is #FFFFFF at 18.00:1 contrast (WCAG AA passes).

Color values

HEX#240440
RGBrgb(36, 4, 64)
HSLhsl(272, 88%, 13%)
HSVhsv(272, 94%, 25%)
CMYKcmyk(43.8%, 93.8%, 0%, 74.9%)
CIE-LABlab(7.52, 29.30, -30.69)
CIE-LCHlch(7.52, 42.43, 313.67°)
OKLaboklab(21.62% 0.0558 -0.0878)
OKLCHoklch(21.62% 0.104 302.4)
XYZxyz(1.6962, 0.8321, 4.9207)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240440 #204004
analogous
#060440 #240440 #40043E
triadic
#240440 #402404 #044024
tetradic
#240440 #400604 #204004 #043E40
square
#240440 #400604 #204004 #043E40
split-complementary
#240440 #3E4004 #044006
monochromatic
#10021D #10021D #240440 #44087A #650BB3

Accessibility & contrast

On white

18.00
#240440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240440
18.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240440#FFFFFF#000000##FFFFFF
##2404401.0018.001.1718.00
#FFFFFF18.001.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001642
Deuteranopia (green-blind)
#00163F
Tritanopia (blue-blind)
#1E1523
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #240440;
/* rgb */ color: rgb(36, 4, 64);
/* oklch */ color: oklch(21.6% 0.104 302.4);
Tailwind
colors: {
  custom: {
    50: '#634875',
    500: '#240440',
    950: '#000000',
  },
}
SCSS
$custom: #240440;
$custom-light: #634875;
$custom-dark: #000000;
JSON
{
  "hex": "#240440",
  "rgb": {
    "r": 36,
    "g": 4,
    "b": 64
  },
  "hsl": {
    "h": 272,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.21624,
    "c": 0.10398,
    "h": 302.4
  },
  "luminance": 0.00832
}

Semantic roles & 50–950 ramp

primary
#240440
secondary
#4D811F
accent
#FE298D
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050108
muted
#7A777B

Preview Lab

Preview with #240440

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

Preview Lab → · Contrast checker → · Palette generator →

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