#240334#240334

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

Color values

HEX#240334
RGBrgb(36, 3, 52)
HSLhsl(280, 89%, 11%)
HSVhsv(280, 94%, 20%)
CMYKcmyk(30.8%, 94.2%, 0%, 79.6%)
CIE-LABlab(6.22, 26.21, -24.10)
CIE-LCHlch(6.22, 35.61, 317.40°)
OKLaboklab(20.25% 0.0616 -0.0691)
OKLCHoklch(20.25% 0.093 311.7)
XYZxyz(1.3798, 0.6882, 3.3083)
Luminance0.0069 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240334 #133403
analogous
#0B0334 #240334 #34032B
triadic
#240334 #342403 #033424
tetradic
#240334 #340B03 #133403 #032B34
square
#240334 #340B03 #133403 #032B34
split-complementary
#240334 #2B3403 #03340B
monochromatic
#14021D #14021D #240334 #4C066E #740AA8

Accessibility & contrast

On white

18.46
#240334 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240334
18.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240334#FFFFFF#000000##FFFFFF
##2403341.0018.461.1418.46
#FFFFFF18.461.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #240334;
/* rgb */ color: rgb(36, 3, 52);
/* oklch */ color: oklch(20.2% 0.093 311.7);
Tailwind
colors: {
  custom: {
    50: '#61476c',
    500: '#240334',
    950: '#000000',
  },
}
SCSS
$custom: #240334;
$custom-light: #61476c;
$custom-dark: #000000;
JSON
{
  "hex": "#240334",
  "rgb": {
    "r": 36,
    "g": 3,
    "b": 52
  },
  "hsl": {
    "h": 280.408,
    "s": 89.091,
    "l": 10.784
  },
  "oklch": {
    "l": 0.20248,
    "c": 0.0926,
    "h": 311.7
  },
  "luminance": 0.00688
}

Semantic roles & 50–950 ramp

primary
#240334
secondary
#3A771C
accent
#FF296F
background
#F5F4F6
surface
#EAE6EB
border
#C6C2C6
text
#050007
muted
#79777A

Preview Lab

Preview with #240334

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

Preview Lab → · Contrast checker → · Palette generator →

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