#240333#240333

#240333 is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.2% C 0.092 H 312.6°. Best body text is #FFFFFF at 18.49:1 contrast (WCAG AA passes).

Color values

HEX#240333
RGBrgb(36, 3, 51)
HSLhsl(281, 89%, 11%)
HSVhsv(281, 94%, 20%)
CMYKcmyk(29.4%, 94.1%, 0%, 80%)
CIE-LABlab(6.14, 25.90, -23.50)
CIE-LCHlch(6.14, 34.97, 317.78°)
OKLaboklab(20.15% 0.062 -0.0674)
OKLCHoklch(20.15% 0.092 312.6)
XYZxyz(1.3575, 0.6793, 3.1909)
Luminance0.0068 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240333 #123303
analogous
#0C0333 #240333 #33032A
triadic
#240333 #332403 #033324
tetradic
#240333 #330C03 #123303 #032A33
square
#240333 #330C03 #123303 #032A33
split-complementary
#240333 #2A3303 #03330C
monochromatic
#14021D #14021D #240333 #4D066D #760AA7

Accessibility & contrast

On white

18.49
#240333 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#240333 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240333
18.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240333#FFFFFF#000000##FFFFFF
##2403331.0018.491.1418.49
#FFFFFF18.491.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001234
Deuteranopia (green-blind)
#001432
Tritanopia (blue-blind)
#220E1B
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #240333;
/* rgb */ color: rgb(36, 3, 51);
/* oklch */ color: oklch(20.2% 0.092 312.6);
Tailwind
colors: {
  custom: {
    50: '#61476b',
    500: '#240333',
    950: '#000000',
  },
}
SCSS
$custom: #240333;
$custom-light: #61476b;
$custom-dark: #000000;
JSON
{
  "hex": "#240333",
  "rgb": {
    "r": 36,
    "g": 3,
    "b": 51
  },
  "hsl": {
    "h": 281.25,
    "s": 88.889,
    "l": 10.588
  },
  "oklch": {
    "l": 0.20151,
    "c": 0.09155,
    "h": 312.6
  },
  "luminance": 0.00679
}

Semantic roles & 50–950 ramp

primary
#240333
secondary
#38761C
accent
#FF296C
background
#F5F4F6
surface
#EAE6EB
border
#C6C2C6
text
#050006
muted
#79777A

Preview Lab

Preview with #240333

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

Preview Lab → · Contrast checker → · Palette generator →

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