#240F4C#240F4C

#240F4C is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.3% C 0.105 H 292.6°. Best body text is #FFFFFF at 16.83:1 contrast (WCAG AA passes).

Color values

HEX#240F4C
RGBrgb(36, 15, 76)
HSLhsl(261, 67%, 18%)
HSVhsv(261, 80%, 30%)
CMYKcmyk(52.6%, 80.3%, 0%, 70.2%)
CIE-LABlab(10.84, 26.87, -33.69)
CIE-LCHlch(10.84, 43.09, 308.57°)
OKLaboklab(24.33% 0.0402 -0.0966)
OKLCHoklch(24.33% 0.105 292.6)
XYZxyz(2.2025, 1.2384, 6.9591)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F4C #374C0F
analogous
#0F184C #240F4C #420F4C
triadic
#240F4C #4C240F #0F4C24
tetradic
#240F4C #4C0F18 #374C0F #0F4C42
square
#240F4C #4C0F18 #374C0F #0F4C42
split-complementary
#240F4C #4C420F #184C0F
monochromatic
#0C051A #0C051A #240F4C #3C197F #5423B2

Accessibility & contrast

On white

16.83
#240F4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240F4C
16.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F4C#FFFFFF#000000##FFFFFF
##240F4C1.0016.831.2516.83
#FFFFFF16.831.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4E
Deuteranopia (green-blind)
#001C4B
Tritanopia (blue-blind)
#181F2C
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #240f4c;
/* rgb */ color: rgb(36, 15, 76);
/* oklch */ color: oklch(24.3% 0.105 292.6);
Tailwind
colors: {
  custom: {
    50: '#644f7f',
    500: '#240f4c',
    950: '#000000',
  },
}
SCSS
$custom: #240f4c;
$custom-light: #644f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#240f4c",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 76
  },
  "hsl": {
    "h": 260.656,
    "s": 67.033,
    "l": 17.843
  },
  "oklch": {
    "l": 0.24333,
    "c": 0.10466,
    "h": 292.6
  },
  "luminance": 0.01239
}

Semantic roles & 50–950 ramp

primary
#240F4C
secondary
#698631
accent
#EA3EAF
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #240F4C

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

Preview Lab → · Contrast checker → · Palette generator →

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