#240F2F#240F2F

#240F2F is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.7% C 0.065 H 312.5°. Best body text is #FFFFFF at 17.73:1 contrast (WCAG AA passes).

Color values

HEX#240F2F
RGBrgb(36, 15, 47)
HSLhsl(279, 52%, 12%)
HSVhsv(279, 68%, 18%)
CMYKcmyk(23.4%, 68.1%, 0%, 81.6%)
CIE-LABlab(8.32, 18.05, -17.04)
CIE-LCHlch(8.32, 24.83, 316.65°)
OKLaboklab(21.73% 0.0438 -0.0477)
OKLCHoklch(21.73% 0.065 312.5)
XYZxyz(1.4114, 0.9220, 2.7924)
Luminance0.0092 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F2F #1A2F0F
analogous
#140F2F #240F2F #2F0F2A
triadic
#240F2F #2F240F #0F2F24
tetradic
#240F2F #2F140F #1A2F0F #0F2A2F
square
#240F2F #2F140F #1A2F0F #0F2A2F
split-complementary
#240F2F #2A2F0F #0F2F14
monochromatic
#120717 #120717 #240F2F #481E5D #6B2D8C

Accessibility & contrast

On white

17.73
#240F2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#240F2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240F2F
17.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F2F#FFFFFF#000000##FFFFFF
##240F2F1.0017.731.1817.73
#FFFFFF17.731.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061730
Deuteranopia (green-blind)
#0D192E
Tritanopia (blue-blind)
#23151D
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #240f2f;
/* rgb */ color: rgb(36, 15, 47);
/* oklch */ color: oklch(21.7% 0.065 312.5);
Tailwind
colors: {
  custom: {
    50: '#604e67',
    500: '#240f2f',
    950: '#000000',
  },
}
SCSS
$custom: #240f2f;
$custom-light: #604e67;
$custom-dark: #000000;
JSON
{
  "hex": "#240f2f",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 47
  },
  "hsl": {
    "h": 279.375,
    "s": 51.613,
    "l": 12.157
  },
  "oklch": {
    "l": 0.21733,
    "c": 0.06478,
    "h": 312.5
  },
  "luminance": 0.00922
}

Semantic roles & 50–950 ramp

primary
#240F2F
secondary
#446931
accent
#DB4D7E
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#050106
muted
#79777A

Preview Lab

Preview with #240F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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