#240C4F#240C4F

#240C4F is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.2% C 0.112 H 292.1°. Best body text is #FFFFFF at 16.93:1 contrast (WCAG AA passes).

Color values

HEX#240C4F
RGBrgb(36, 12, 79)
HSLhsl(261, 74%, 18%)
HSVhsv(261, 85%, 31%)
CMYKcmyk(54.4%, 84.8%, 0%, 69%)
CIE-LABlab(10.58, 29.44, -36.19)
CIE-LCHlch(10.58, 46.66, 309.12°)
OKLaboklab(24.24% 0.0422 -0.1039)
OKLCHoklch(24.24% 0.112 292.1)
XYZxyz(2.2699, 1.2024, 7.5081)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240C4F #374F0C
analogous
#0C154F #240C4F #450C4F
triadic
#240C4F #4F240C #0C4F24
tetradic
#240C4F #4F0C15 #374F0C #0C4F45
square
#240C4F #4F0C15 #374F0C #0C4F45
split-complementary
#240C4F #4F450C #154F0C
monochromatic
#0C041B #0C041B #240C4F #3C1484 #541CB9

Accessibility & contrast

On white

16.93
#240C4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#240C4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240C4F
16.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240C4F#FFFFFF#000000##FFFFFF
##240C4F1.0016.931.2416.93
#FFFFFF16.931.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E51
Deuteranopia (green-blind)
#001B4E
Tritanopia (blue-blind)
#161F2D
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #240c4f;
/* rgb */ color: rgb(36, 12, 79);
/* oklch */ color: oklch(24.2% 0.112 292.1);
Tailwind
colors: {
  custom: {
    50: '#654e81',
    500: '#240c4f',
    950: '#000000',
  },
}
SCSS
$custom: #240c4f;
$custom-light: #654e81;
$custom-dark: #000000;
JSON
{
  "hex": "#240c4f",
  "rgb": {
    "r": 36,
    "g": 12,
    "b": 79
  },
  "hsl": {
    "h": 261.493,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.24244,
    "c": 0.11217,
    "h": 292.1
  },
  "luminance": 0.01203
}

Semantic roles & 50–950 ramp

primary
#240C4F
secondary
#698B2C
accent
#F038AE
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #240C4F

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

Preview Lab → · Contrast checker → · Palette generator →

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