#240235#240235

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

Color values

HEX#240235
RGBrgb(36, 2, 53)
HSLhsl(280, 93%, 11%)
HSVhsv(280, 96%, 21%)
CMYKcmyk(32.1%, 96.2%, 0%, 79.2%)
CIE-LABlab(6.10, 27.05, -25.02)
CIE-LCHlch(6.10, 36.85, 317.23°)
OKLaboklab(20.18% 0.0629 -0.0719)
OKLCHoklch(20.18% 0.096 311.2)
XYZxyz(1.3917, 0.6756, 3.4246)
Luminance0.0068 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240235 #133502
analogous
#0A0235 #240235 #35022C
triadic
#240235 #352402 #023524
tetradic
#240235 #350A02 #133502 #022C35
square
#240235 #350A02 #133502 #022C35
split-complementary
#240235 #2C3502 #02350A
monochromatic
#14011D #14011D #240235 #4C0470 #7406AB

Accessibility & contrast

On white

18.50
#240235 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240235
18.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240235#FFFFFF#000000##FFFFFF
##2402351.0018.501.1418.50
#FFFFFF18.501.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001236
Deuteranopia (green-blind)
#001434
Tritanopia (blue-blind)
#220E1C
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #240235;
/* rgb */ color: rgb(36, 2, 53);
/* oklch */ color: oklch(20.2% 0.096 311.2);
Tailwind
colors: {
  custom: {
    50: '#61476d',
    500: '#240235',
    950: '#000000',
  },
}
SCSS
$custom: #240235;
$custom-light: #61476d;
$custom-dark: #000000;
JSON
{
  "hex": "#240235",
  "rgb": {
    "r": 36,
    "g": 2,
    "b": 53
  },
  "hsl": {
    "h": 280,
    "s": 92.727,
    "l": 10.784
  },
  "oklch": {
    "l": 0.20184,
    "c": 0.09556,
    "h": 311.2
  },
  "luminance": 0.00676
}

Semantic roles & 50–950 ramp

primary
#240235
secondary
#3A791A
accent
#FF2970
background
#F5F4F6
surface
#EAE6EB
border
#C6C2C6
text
#050007
muted
#79777A

Preview Lab

Preview with #240235

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

Preview Lab → · Contrast checker → · Palette generator →

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