#240F4F#240F4F

#240F4F is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.6% C 0.109 H 291.3°. Best body text is #FFFFFF at 16.72:1 contrast (WCAG AA passes).

Color values

HEX#240F4F
RGBrgb(36, 15, 79)
HSLhsl(260, 68%, 18%)
HSVhsv(260, 81%, 31%)
CMYKcmyk(54.4%, 81%, 0%, 69%)
CIE-LABlab(11.14, 27.82, -35.26)
CIE-LCHlch(11.14, 44.92, 308.27°)
OKLaboklab(24.64% 0.0394 -0.1012)
OKLCHoklch(24.64% 0.109 291.3)
XYZxyz(2.3093, 1.2811, 7.5212)
Luminance0.0128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F4F #3A4F0F
analogous
#0F1A4F #240F4F #440F4F
triadic
#240F4F #4F240F #0F4F24
tetradic
#240F4F #4F0F1A #3A4F0F #0F4F44
square
#240F4F #4F0F1A #3A4F0F #0F4F44
split-complementary
#240F4F #4F440F #1A4F0F
monochromatic
#0C051A #0D051C #240F4F #3B1982 #5323B6

Accessibility & contrast

On white

16.72
#240F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#240F4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240F4F
16.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F4F#FFFFFF#000000##FFFFFF
##240F4F1.0016.721.2616.72
#FFFFFF16.721.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F51
Deuteranopia (green-blind)
#001C4E
Tritanopia (blue-blind)
#16202E
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #240f4f;
/* rgb */ color: rgb(36, 15, 79);
/* oklch */ color: oklch(24.6% 0.109 291.3);
Tailwind
colors: {
  custom: {
    50: '#645081',
    500: '#240f4f',
    950: '#000000',
  },
}
SCSS
$custom: #240f4f;
$custom-light: #645081;
$custom-dark: #000000;
JSON
{
  "hex": "#240f4f",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 79
  },
  "hsl": {
    "h": 259.688,
    "s": 68.085,
    "l": 18.431
  },
  "oklch": {
    "l": 0.24642,
    "c": 0.10863,
    "h": 291.3
  },
  "luminance": 0.01281
}

Semantic roles & 50–950 ramp

primary
#240F4F
secondary
#6C8931
accent
#EB3DB2
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #240F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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