#240936#240936

#240936 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.4% C 0.085 H 308.2°. Best body text is #FFFFFF at 17.99:1 contrast (WCAG AA passes).

Color values

HEX#240936
RGBrgb(36, 9, 54)
HSLhsl(276, 71%, 12%)
HSVhsv(276, 83%, 21%)
CMYKcmyk(33.3%, 83.3%, 0%, 78.8%)
CIE-LABlab(7.56, 23.62, -23.41)
CIE-LCHlch(7.56, 33.25, 315.26°)
OKLaboklab(21.35% 0.0523 -0.0664)
OKLCHoklch(21.35% 0.085 308.2)
XYZxyz(1.4910, 0.8368, 3.5723)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240936 #1B3609
analogous
#0D0936 #240936 #360932
triadic
#240936 #362409 #093624
tetradic
#240936 #360D09 #1B3609 #093236
square
#240936 #360D09 #1B3609 #093236
split-complementary
#240936 #323609 #09360D
monochromatic
#11041A #11041A #240936 #47126A #6A1A9F

Accessibility & contrast

On white

17.99
#240936 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#240936 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240936
17.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240936#FFFFFF#000000##FFFFFF
##2409361.0017.991.1717.99
#FFFFFF17.991.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001637
Deuteranopia (green-blind)
#011735
Tritanopia (blue-blind)
#21131E
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #240936;
/* rgb */ color: rgb(36, 9, 54);
/* oklch */ color: oklch(21.4% 0.085 308.2);
Tailwind
colors: {
  custom: {
    50: '#614b6d',
    500: '#240936',
    950: '#000000',
  },
}
SCSS
$custom: #240936;
$custom-light: #614b6d;
$custom-dark: #000000;
JSON
{
  "hex": "#240936",
  "rgb": {
    "r": 36,
    "g": 9,
    "b": 54
  },
  "hsl": {
    "h": 276,
    "s": 71.429,
    "l": 12.353
  },
  "oklch": {
    "l": 0.21351,
    "c": 0.08453,
    "h": 308.2
  },
  "luminance": 0.00837
}

Semantic roles & 50–950 ramp

primary
#240936
secondary
#467427
accent
#EE3A82
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050107
muted
#79777A

Preview Lab

Preview with #240936

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

Preview Lab → · Contrast checker → · Palette generator →

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