#240736#240736

#240736 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.1% C 0.088 H 308.8°. Best body text is #FFFFFF at 18.13:1 contrast (WCAG AA passes).

Color values

HEX#240736
RGBrgb(36, 7, 54)
HSLhsl(277, 77%, 12%)
HSVhsv(277, 87%, 21%)
CMYKcmyk(33.3%, 87%, 0%, 78.8%)
CIE-LABlab(7.17, 24.70, -24.04)
CIE-LCHlch(7.17, 34.47, 315.77°)
OKLaboklab(21.06% 0.0551 -0.0684)
OKLCHoklch(21.06% 0.088 308.8)
XYZxyz(1.4693, 0.7934, 3.5651)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240736 #193607
analogous
#0D0736 #240736 #360731
triadic
#240736 #362407 #073624
tetradic
#240736 #360D07 #193607 #073136
square
#240736 #360D07 #193607 #073136
split-complementary
#240736 #313607 #07360D
monochromatic
#12041B #12041B #240736 #480E6C #6C15A2

Accessibility & contrast

On white

18.13
#240736 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#240736 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240736
18.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240736#FFFFFF#000000##FFFFFF
##2407361.0018.131.1618.13
#FFFFFF18.131.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001537
Deuteranopia (green-blind)
#001635
Tritanopia (blue-blind)
#21121E
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #240736;
/* rgb */ color: rgb(36, 7, 54);
/* oklch */ color: oklch(21.1% 0.088 308.8);
Tailwind
colors: {
  custom: {
    50: '#614a6d',
    500: '#240736',
    950: '#000000',
  },
}
SCSS
$custom: #240736;
$custom-light: #614a6d;
$custom-dark: #000000;
JSON
{
  "hex": "#240736",
  "rgb": {
    "r": 36,
    "g": 7,
    "b": 54
  },
  "hsl": {
    "h": 277.021,
    "s": 77.049,
    "l": 11.961
  },
  "oklch": {
    "l": 0.21058,
    "c": 0.08778,
    "h": 308.8
  },
  "luminance": 0.00793
}

Semantic roles & 50–950 ramp

primary
#240736
secondary
#437623
accent
#F4347E
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050107
muted
#79777A

Preview Lab

Preview with #240736

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

Preview Lab → · Contrast checker → · Palette generator →

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