#240940#240940

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

Color values

HEX#240940
RGBrgb(36, 9, 64)
HSLhsl(269, 75%, 14%)
HSVhsv(269, 86%, 25%)
CMYKcmyk(43.8%, 85.9%, 0%, 74.9%)
CIE-LABlab(8.49, 26.49, -29.11)
CIE-LCHlch(8.49, 39.36, 312.31°)
OKLaboklab(22.31% 0.0499 -0.0831)
OKLCHoklch(22.31% 0.097 301)
XYZxyz(1.7504, 0.9406, 4.9388)
Luminance0.0094 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240940 #254009
analogous
#090940 #240940 #400940
triadic
#240940 #402409 #094024
tetradic
#240940 #400909 #254009 #094040
square
#240940 #400909 #254009 #094040
split-complementary
#240940 #404009 #094009
monochromatic
#0F041B #0F041B #240940 #421176 #6018AB

Accessibility & contrast

On white

17.67
#240940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240940
17.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240940#FFFFFF#000000##FFFFFF
##2409401.0017.671.1917.67
#FFFFFF17.671.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001842
Deuteranopia (green-blind)
#00183F
Tritanopia (blue-blind)
#1E1724
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #240940;
/* rgb */ color: rgb(36, 9, 64);
/* oklch */ color: oklch(22.3% 0.097 301.0);
Tailwind
colors: {
  custom: {
    50: '#624b75',
    500: '#240940',
    950: '#000000',
  },
}
SCSS
$custom: #240940;
$custom-light: #624b75;
$custom-dark: #000000;
JSON
{
  "hex": "#240940",
  "rgb": {
    "r": 36,
    "g": 9,
    "b": 64
  },
  "hsl": {
    "h": 269.455,
    "s": 75.342,
    "l": 14.314
  },
  "oklch": {
    "l": 0.22306,
    "c": 0.09695,
    "h": 301
  },
  "luminance": 0.00941
}

Semantic roles & 50–950 ramp

primary
#240940
secondary
#537E27
accent
#F23696
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050108
muted
#7A777B

Preview Lab

Preview with #240940

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

Preview Lab → · Contrast checker → · Palette generator →

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