#240735#240735

#240735 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.0% C 0.087 H 309.7°. Best body text is #FFFFFF at 18.15:1 contrast (WCAG AA passes).

Color values

HEX#240735
RGBrgb(36, 7, 53)
HSLhsl(278, 77%, 12%)
HSVhsv(278, 87%, 21%)
CMYKcmyk(32.1%, 86.8%, 0%, 79.2%)
CIE-LABlab(7.08, 24.40, -23.44)
CIE-LCHlch(7.08, 33.84, 316.14°)
OKLaboklab(20.97% 0.0553 -0.0666)
OKLCHoklch(20.97% 0.087 309.7)
XYZxyz(1.4460, 0.7841, 3.4426)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240735 #183507
analogous
#0D0735 #240735 #35072F
triadic
#240735 #352407 #073524
tetradic
#240735 #350D07 #183507 #072F35
square
#240735 #350D07 #183507 #072F35
split-complementary
#240735 #2F3507 #07350D
monochromatic
#12041B #12041B #240735 #490E6B #6D15A1

Accessibility & contrast

On white

18.15
#240735 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240735
18.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240735#FFFFFF#000000##FFFFFF
##2407351.0018.151.1618.15
#FFFFFF18.151.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001436
Deuteranopia (green-blind)
#011634
Tritanopia (blue-blind)
#22121D
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #240735;
/* rgb */ color: rgb(36, 7, 53);
/* oklch */ color: oklch(21.0% 0.087 309.7);
Tailwind
colors: {
  custom: {
    50: '#614a6c',
    500: '#240735',
    950: '#000000',
  },
}
SCSS
$custom: #240735;
$custom-light: #614a6c;
$custom-dark: #000000;
JSON
{
  "hex": "#240735",
  "rgb": {
    "r": 36,
    "g": 7,
    "b": 53
  },
  "hsl": {
    "h": 277.826,
    "s": 76.667,
    "l": 11.765
  },
  "oklch": {
    "l": 0.20965,
    "c": 0.08658,
    "h": 309.7
  },
  "luminance": 0.00784
}

Semantic roles & 50–950 ramp

primary
#240735
secondary
#417523
accent
#F3357B
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050107
muted
#79777A

Preview Lab

Preview with #240735

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

Preview Lab → · Contrast checker → · Palette generator →

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