#240F5C#240F5C

#240F5C is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.0% C 0.125 H 286.4°. Best body text is #FFFFFF at 16.18:1 contrast (WCAG AA passes).

Color values

HEX#240F5C
RGBrgb(36, 15, 92)
HSLhsl(256, 72%, 21%)
HSVhsv(256, 84%, 36%)
CMYKcmyk(60.9%, 83.7%, 0%, 63.9%)
CIE-LABlab(12.54, 31.95, -41.81)
CIE-LCHlch(12.54, 52.62, 307.39°)
OKLaboklab(26.05% 0.0353 -0.1204)
OKLCHoklch(26.05% 0.125 286.4)
XYZxyz(2.8296, 1.4893, 10.2615)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F5C #475C0F
analogous
#0F205C #240F5C #4A0F5C
triadic
#240F5C #5C240F #0F5C24
tetradic
#240F5C #5C0F20 #475C0F #0F5C4A
square
#240F5C #5C0F20 #475C0F #0F5C4A
split-complementary
#240F5C #5C4A0F #205C0F
monochromatic
#0A041A #0F0627 #240F5C #391891 #4D20C5

Accessibility & contrast

On white

16.18
#240F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240F5C
16.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F5C#FFFFFF#000000##FFFFFF
##240F5C1.0016.181.3016.18
#FFFFFF16.181.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225E
Deuteranopia (green-blind)
#001E5B
Tritanopia (blue-blind)
#092535
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #240f5c;
/* rgb */ color: rgb(36, 15, 92);
/* oklch */ color: oklch(26.0% 0.125 286.4);
Tailwind
colors: {
  custom: {
    50: '#67508b',
    500: '#240f5c',
    950: '#000000',
  },
}
SCSS
$custom: #240f5c;
$custom-light: #67508b;
$custom-dark: #000000;
JSON
{
  "hex": "#240f5c",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 92
  },
  "hsl": {
    "h": 256.364,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.26045,
    "c": 0.12547,
    "h": 286.4
  },
  "luminance": 0.01489
}

Semantic roles & 50–950 ramp

primary
#240F5C
secondary
#7A9531
accent
#EF39BD
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #240F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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