#240436#240436

#240436 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.6% C 0.093 H 309.8°. Best body text is #FFFFFF at 18.33:1 contrast (WCAG AA passes).

Color values

HEX#240436
RGBrgb(36, 4, 54)
HSLhsl(278, 86%, 11%)
HSVhsv(278, 93%, 21%)
CMYKcmyk(33.3%, 92.6%, 0%, 78.8%)
CIE-LABlab(6.58, 26.30, -24.99)
CIE-LCHlch(6.58, 36.28, 316.47°)
OKLaboklab(20.6% 0.0594 -0.0714)
OKLCHoklch(20.6% 0.093 309.8)
XYZxyz(1.4367, 0.7283, 3.5542)
Luminance0.0073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240436 #163604
analogous
#0B0436 #240436 #36042F
triadic
#240436 #362404 #043624
tetradic
#240436 #360B04 #163604 #042F36
square
#240436 #360B04 #163604 #042F36
split-complementary
#240436 #2F3604 #04360B
monochromatic
#13021C #13021C #240436 #4A086F #700CA8

Accessibility & contrast

On white

18.33
#240436 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#240436 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240436
18.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240436#FFFFFF#000000##FFFFFF
##2404361.0018.331.1518.33
#FFFFFF18.331.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001337
Deuteranopia (green-blind)
#001535
Tritanopia (blue-blind)
#21101D
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #240436;
/* rgb */ color: rgb(36, 4, 54);
/* oklch */ color: oklch(20.6% 0.093 309.8);
Tailwind
colors: {
  custom: {
    50: '#61486d',
    500: '#240436',
    950: '#000000',
  },
}
SCSS
$custom: #240436;
$custom-light: #61486d;
$custom-dark: #000000;
JSON
{
  "hex": "#240436",
  "rgb": {
    "r": 36,
    "g": 4,
    "b": 54
  },
  "hsl": {
    "h": 278.4,
    "s": 86.207,
    "l": 11.373
  },
  "oklch": {
    "l": 0.20601,
    "c": 0.09293,
    "h": 309.8
  },
  "luminance": 0.00728
}

Semantic roles & 50–950 ramp

primary
#240436
secondary
#3E781E
accent
#FC2B77
background
#F5F4F6
surface
#EAE6EB
border
#C6C2C6
text
#050007
muted
#79777A

Preview Lab

Preview with #240436

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

Preview Lab → · Contrast checker → · Palette generator →

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