#240F5D#240F5D

#240F5D is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.2% C 0.127 H 286.0°. Best body text is #FFFFFF at 16.14:1 contrast (WCAG AA passes).

Color values

HEX#240F5D
RGBrgb(36, 15, 93)
HSLhsl(256, 72%, 21%)
HSVhsv(256, 84%, 36%)
CMYKcmyk(61.3%, 83.9%, 0%, 63.5%)
CIE-LABlab(12.65, 32.26, -42.30)
CIE-LCHlch(12.65, 53.20, 307.34°)
OKLaboklab(26.16% 0.035 -0.1218)
OKLCHoklch(26.16% 0.127 286)
XYZxyz(2.8736, 1.5069, 10.4932)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F5D #485D0F
analogous
#0F215D #240F5D #4B0F5D
triadic
#240F5D #5D240F #0F5D24
tetradic
#240F5D #5D0F21 #485D0F #0F5D4B
square
#240F5D #5D0F21 #485D0F #0F5D4B
split-complementary
#240F5D #5D4B0F #215D0F
monochromatic
#0A041A #100628 #240F5D #381792 #4D20C6

Accessibility & contrast

On white

16.14
#240F5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#240F5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240F5D
16.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F5D#FFFFFF#000000##FFFFFF
##240F5D1.0016.141.3016.14
#FFFFFF16.141.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235F
Deuteranopia (green-blind)
#001F5C
Tritanopia (blue-blind)
#072636
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #240f5d;
/* rgb */ color: rgb(36, 15, 93);
/* oklch */ color: oklch(26.2% 0.127 286.0);
Tailwind
colors: {
  custom: {
    50: '#67508c',
    500: '#240f5d',
    950: '#000000',
  },
}
SCSS
$custom: #240f5d;
$custom-light: #67508c;
$custom-dark: #000000;
JSON
{
  "hex": "#240f5d",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 93
  },
  "hsl": {
    "h": 256.154,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.26156,
    "c": 0.12674,
    "h": 286
  },
  "luminance": 0.01507
}

Semantic roles & 50–950 ramp

primary
#240F5D
secondary
#7B9631
accent
#EF39BE
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #240F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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