#240F36#240F36

#240F36 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.3% C 0.075 H 306.0°. Best body text is #FFFFFF at 17.55:1 contrast (WCAG AA passes).

Color values

HEX#240F36
RGBrgb(36, 15, 54)
HSLhsl(272, 57%, 14%)
HSVhsv(272, 72%, 21%)
CMYKcmyk(33.3%, 72.2%, 0%, 78.8%)
CIE-LABlab(8.85, 20.07, -21.33)
CIE-LCHlch(8.85, 29.28, 313.26°)
OKLaboklab(22.29% 0.0439 -0.0603)
OKLCHoklch(22.29% 0.075 306)
XYZxyz(1.5641, 0.9831, 3.5967)
Luminance0.0098 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F36 #21360F
analogous
#100F36 #240F36 #360F34
triadic
#240F36 #36240F #0F3624
tetradic
#240F36 #36100F #21360F #0F3436
square
#240F36 #36100F #21360F #0F3436
split-complementary
#240F36 #34360F #0F3610
monochromatic
#100718 #100718 #240F36 #441C66 #642A96

Accessibility & contrast

On white

17.55
#240F36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#240F36 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240F36
17.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F36#FFFFFF#000000##FFFFFF
##240F361.0017.551.2017.55
#FFFFFF17.551.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011937
Deuteranopia (green-blind)
#071935
Tritanopia (blue-blind)
#211720
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #240f36;
/* rgb */ color: rgb(36, 15, 54);
/* oklch */ color: oklch(22.3% 0.075 306.0);
Tailwind
colors: {
  custom: {
    50: '#604e6d',
    500: '#240f36',
    950: '#000000',
  },
}
SCSS
$custom: #240f36;
$custom-light: #604e6d;
$custom-dark: #000000;
JSON
{
  "hex": "#240f36",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 54
  },
  "hsl": {
    "h": 272.308,
    "s": 56.522,
    "l": 13.529
  },
  "oklch": {
    "l": 0.22285,
    "c": 0.07456,
    "h": 306
  },
  "luminance": 0.00983
}

Semantic roles & 50–950 ramp

primary
#240F36
secondary
#4E7031
accent
#E0488E
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050107
muted
#79777A

Preview Lab

Preview with #240F36

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

Preview Lab → · Contrast checker → · Palette generator →

#240F36 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva