#240734#240734

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

Color values

HEX#240734
RGBrgb(36, 7, 52)
HSLhsl(279, 76%, 12%)
HSVhsv(279, 87%, 20%)
CMYKcmyk(30.8%, 86.5%, 0%, 79.6%)
CIE-LABlab(7.00, 24.10, -22.84)
CIE-LCHlch(7.00, 33.20, 316.53°)
OKLaboklab(20.87% 0.0555 -0.0649)
OKLCHoklch(20.87% 0.085 310.5)
XYZxyz(1.4232, 0.7750, 3.3228)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240734 #173407
analogous
#0E0734 #240734 #34072E
triadic
#240734 #342407 #073424
tetradic
#240734 #340E07 #173407 #072E34
square
#240734 #340E07 #173407 #072E34
split-complementary
#240734 #2E3407 #07340E
monochromatic
#13041B #13041B #240734 #490E6A #6F16A0

Accessibility & contrast

On white

18.18
#240734 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240734
18.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240734#FFFFFF#000000##FFFFFF
##2407341.0018.181.1618.18
#FFFFFF18.181.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001435
Deuteranopia (green-blind)
#021633
Tritanopia (blue-blind)
#22111D
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #240734;
/* rgb */ color: rgb(36, 7, 52);
/* oklch */ color: oklch(20.9% 0.085 310.5);
Tailwind
colors: {
  custom: {
    50: '#614a6c',
    500: '#240734',
    950: '#000000',
  },
}
SCSS
$custom: #240734;
$custom-light: #614a6c;
$custom-dark: #000000;
JSON
{
  "hex": "#240734",
  "rgb": {
    "r": 36,
    "g": 7,
    "b": 52
  },
  "hsl": {
    "h": 278.667,
    "s": 76.271,
    "l": 11.569
  },
  "oklch": {
    "l": 0.20874,
    "c": 0.0854,
    "h": 310.5
  },
  "luminance": 0.00775
}

Semantic roles & 50–950 ramp

primary
#240734
secondary
#407423
accent
#F33578
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050107
muted
#79777A

Preview Lab

Preview with #240734

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

Preview Lab → · Contrast checker → · Palette generator →

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