#240336#240336

#240336 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.4% C 0.095 H 310.1°. Best body text is #FFFFFF at 18.40:1 contrast (WCAG AA passes).

Color values

HEX#240336
RGBrgb(36, 3, 54)
HSLhsl(279, 89%, 11%)
HSVhsv(279, 94%, 21%)
CMYKcmyk(33.3%, 94.4%, 0%, 78.8%)
CIE-LABlab(6.38, 26.84, -25.31)
CIE-LCHlch(6.38, 36.89, 316.68°)
OKLaboklab(20.44% 0.061 -0.0725)
OKLCHoklch(20.44% 0.095 310.1)
XYZxyz(1.4258, 0.7066, 3.5506)
Luminance0.0071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240336 #153603
analogous
#0A0336 #240336 #36032E
triadic
#240336 #362403 #033624
tetradic
#240336 #360A03 #153603 #032E36
square
#240336 #360A03 #153603 #032E36
split-complementary
#240336 #2E3603 #03360A
monochromatic
#13021D #13021D #240336 #4B0670 #7109AA

Accessibility & contrast

On white

18.40
#240336 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240336
18.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240336#FFFFFF#000000##FFFFFF
##2403361.0018.401.1418.40
#FFFFFF18.401.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001337
Deuteranopia (green-blind)
#001535
Tritanopia (blue-blind)
#210F1C
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #240336;
/* rgb */ color: rgb(36, 3, 54);
/* oklch */ color: oklch(20.4% 0.095 310.1);
Tailwind
colors: {
  custom: {
    50: '#61476d',
    500: '#240336',
    950: '#000000',
  },
}
SCSS
$custom: #240336;
$custom-light: #61476d;
$custom-dark: #000000;
JSON
{
  "hex": "#240336",
  "rgb": {
    "r": 36,
    "g": 3,
    "b": 54
  },
  "hsl": {
    "h": 278.824,
    "s": 89.474,
    "l": 11.176
  },
  "oklch": {
    "l": 0.20444,
    "c": 0.09474,
    "h": 310.1
  },
  "luminance": 0.00707
}

Semantic roles & 50–950 ramp

primary
#240336
secondary
#3D791C
accent
#FF2974
background
#F5F4F6
surface
#EAE6EB
border
#C6C2C6
text
#050007
muted
#79777A

Preview Lab

Preview with #240336

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

Preview Lab → · Contrast checker → · Palette generator →

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