#240F4D#240F4D

#240F4D is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.4% C 0.106 H 292.1°. Best body text is #FFFFFF at 16.79:1 contrast (WCAG AA passes).

Color values

HEX#240F4D
RGBrgb(36, 15, 77)
HSLhsl(260, 67%, 18%)
HSVhsv(260, 81%, 30%)
CMYKcmyk(53.2%, 80.5%, 0%, 69.8%)
CIE-LABlab(10.94, 27.18, -34.22)
CIE-LCHlch(10.94, 43.70, 308.47°)
OKLaboklab(24.44% 0.04 -0.0982)
OKLCHoklch(24.44% 0.106 292.1)
XYZxyz(2.2376, 1.2525, 7.1436)
Luminance0.0125 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F4D #384D0F
analogous
#0F194D #240F4D #430F4D
triadic
#240F4D #4D240F #0F4D24
tetradic
#240F4D #4D0F19 #384D0F #0F4D43
square
#240F4D #4D0F19 #384D0F #0F4D43
split-complementary
#240F4D #4D430F #194D0F
monochromatic
#0C051A #0C051A #240F4D #3C1980 #5423B3

Accessibility & contrast

On white

16.79
#240F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#240F4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240F4D
16.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F4D#FFFFFF#000000##FFFFFF
##240F4D1.0016.791.2516.79
#FFFFFF16.791.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4F
Deuteranopia (green-blind)
#001C4C
Tritanopia (blue-blind)
#171F2D
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #240f4d;
/* rgb */ color: rgb(36, 15, 77);
/* oklch */ color: oklch(24.4% 0.106 292.1);
Tailwind
colors: {
  custom: {
    50: '#644f7f',
    500: '#240f4d',
    950: '#000000',
  },
}
SCSS
$custom: #240f4d;
$custom-light: #644f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#240f4d",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 77
  },
  "hsl": {
    "h": 260.323,
    "s": 67.391,
    "l": 18.039
  },
  "oklch": {
    "l": 0.24435,
    "c": 0.10599,
    "h": 292.1
  },
  "luminance": 0.01253
}

Semantic roles & 50–950 ramp

primary
#240F4D
secondary
#6A8731
accent
#EA3EB0
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #240F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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