#240332#240332

#240332 is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.1% C 0.090 H 313.5°. Best body text is #FFFFFF at 18.52:1 contrast (WCAG AA passes).

Color values

HEX#240332
RGBrgb(36, 3, 50)
HSLhsl(282, 89%, 10%)
HSVhsv(282, 94%, 20%)
CMYKcmyk(28%, 94%, 0%, 80.4%)
CIE-LABlab(6.06, 25.59, -22.88)
CIE-LCHlch(6.06, 34.33, 318.19°)
OKLaboklab(20.06% 0.0623 -0.0657)
OKLCHoklch(20.06% 0.09 313.5)
XYZxyz(1.3357, 0.6705, 3.0761)
Luminance0.0067 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240332 #113203
analogous
#0D0332 #240332 #320328
triadic
#240332 #322403 #033224
tetradic
#240332 #320D03 #113203 #032832
square
#240332 #320D03 #113203 #032832
split-complementary
#240332 #283203 #03320D
monochromatic
#15021D #15021D #240332 #4E066C #770AA5

Accessibility & contrast

On white

18.52
#240332 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240332
18.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240332#FFFFFF#000000##FFFFFF
##2403321.0018.521.1318.52
#FFFFFF18.521.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #240332;
/* rgb */ color: rgb(36, 3, 50);
/* oklch */ color: oklch(20.1% 0.090 313.5);
Tailwind
colors: {
  custom: {
    50: '#61476a',
    500: '#240332',
    950: '#000000',
  },
}
SCSS
$custom: #240332;
$custom-light: #61476a;
$custom-dark: #000000;
JSON
{
  "hex": "#240332",
  "rgb": {
    "r": 36,
    "g": 3,
    "b": 50
  },
  "hsl": {
    "h": 282.128,
    "s": 88.679,
    "l": 10.392
  },
  "oklch": {
    "l": 0.20056,
    "c": 0.09049,
    "h": 313.5
  },
  "luminance": 0.0067
}

Semantic roles & 50–950 ramp

primary
#240332
secondary
#36751B
accent
#FF2969
background
#F5F4F6
surface
#EAE6EB
border
#C6C2C6
text
#050006
muted
#79777A

Preview Lab

Preview with #240332

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

Preview Lab → · Contrast checker → · Palette generator →

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