#240E5F#240E5F

#240E5F is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.3% C 0.130 H 285.6°. Best body text is #FFFFFF at 16.12:1 contrast (WCAG AA passes).

Color values

HEX#240E5F
RGBrgb(36, 14, 95)
HSLhsl(256, 74%, 21%)
HSVhsv(256, 85%, 37%)
CMYKcmyk(62.1%, 85.3%, 0%, 62.7%)
CIE-LABlab(12.70, 33.40, -43.55)
CIE-LCHlch(12.70, 54.88, 307.48°)
OKLaboklab(26.26% 0.035 -0.1255)
OKLCHoklch(26.26% 0.13 285.6)
XYZxyz(2.9495, 1.5152, 10.9613)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240E5F #495F0E
analogous
#0E215F #240E5F #4D0E5F
triadic
#240E5F #5F240E #0E5F24
tetradic
#240E5F #5F0E21 #495F0E #0E5F4D
square
#240E5F #5F0E21 #495F0E #0E5F4D
split-complementary
#240E5F #5F4D0E #215F0E
monochromatic
#0A041B #10062A #240E5F #381694 #4C1ECA

Accessibility & contrast

On white

16.12
#240E5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240E5F
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240E5F#FFFFFF#000000##FFFFFF
##240E5F1.0016.121.3016.12
#FFFFFF16.121.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002361
Deuteranopia (green-blind)
#001E5E
Tritanopia (blue-blind)
#042637
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #240e5f;
/* rgb */ color: rgb(36, 14, 95);
/* oklch */ color: oklch(26.3% 0.130 285.6);
Tailwind
colors: {
  custom: {
    50: '#68508d',
    500: '#240e5f',
    950: '#000000',
  },
}
SCSS
$custom: #240e5f;
$custom-light: #68508d;
$custom-dark: #000000;
JSON
{
  "hex": "#240e5f",
  "rgb": {
    "r": 36,
    "g": 14,
    "b": 95
  },
  "hsl": {
    "h": 256.296,
    "s": 74.312,
    "l": 21.373
  },
  "oklch": {
    "l": 0.26261,
    "c": 0.13026,
    "h": 285.6
  },
  "luminance": 0.01515
}

Semantic roles & 50–950 ramp

primary
#240E5F
secondary
#7C9930
accent
#F137BE
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #240E5F

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

Preview Lab → · Contrast checker → · Palette generator →

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