#240232#240232

#240232 is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.9% C 0.092 H 313.8°. Best body text is #FFFFFF at 18.59:1 contrast (WCAG AA passes).

Color values

HEX#240232
RGBrgb(36, 2, 50)
HSLhsl(283, 92%, 10%)
HSVhsv(283, 96%, 20%)
CMYKcmyk(28%, 96%, 0%, 80.4%)
CIE-LABlab(5.86, 26.11, -23.20)
CIE-LCHlch(5.86, 34.92, 318.38°)
OKLaboklab(19.89% 0.064 -0.0668)
OKLCHoklch(19.89% 0.092 313.8)
XYZxyz(1.3249, 0.6488, 3.0724)
Luminance0.0065 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240232 #103202
analogous
#0C0232 #240232 #320228
triadic
#240232 #322402 #023224
tetradic
#240232 #320C02 #103202 #022832
square
#240232 #320C02 #103202 #022832
split-complementary
#240232 #283202 #02320C
monochromatic
#15011D #15011D #240232 #4E046D #7907A8

Accessibility & contrast

On white

18.59
#240232 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#240232 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240232
18.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240232#FFFFFF#000000##FFFFFF
##2402321.0018.591.1318.59
#FFFFFF18.591.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001133
Deuteranopia (green-blind)
#001431
Tritanopia (blue-blind)
#230D1A
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #240232;
/* rgb */ color: rgb(36, 2, 50);
/* oklch */ color: oklch(19.9% 0.092 313.8);
Tailwind
colors: {
  custom: {
    50: '#61476a',
    500: '#240232',
    950: '#000000',
  },
}
SCSS
$custom: #240232;
$custom-light: #61476a;
$custom-dark: #000000;
JSON
{
  "hex": "#240232",
  "rgb": {
    "r": 36,
    "g": 2,
    "b": 50
  },
  "hsl": {
    "h": 282.5,
    "s": 92.308,
    "l": 10.196
  },
  "oklch": {
    "l": 0.1989,
    "c": 0.09248,
    "h": 313.8
  },
  "luminance": 0.00649
}

Semantic roles & 50–950 ramp

primary
#240232
secondary
#357619
accent
#FF2967
background
#F5F4F6
surface
#EAE6EB
border
#C6C2C6
text
#050006
muted
#79777A

Preview Lab

Preview with #240232

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

Preview Lab → · Contrast checker → · Palette generator →

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