#240E5D#240E5D

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

Color values

HEX#240E5D
RGBrgb(36, 14, 93)
HSLhsl(257, 74%, 21%)
HSVhsv(257, 85%, 36%)
CMYKcmyk(61.3%, 84.9%, 0%, 63.5%)
CIE-LABlab(12.48, 32.77, -42.59)
CIE-LCHlch(12.48, 53.74, 307.58°)
OKLaboklab(26.03% 0.0357 -0.1226)
OKLCHoklch(26.03% 0.128 286.2)
XYZxyz(2.8598, 1.4793, 10.4886)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240E5D #475D0E
analogous
#0E1F5D #240E5D #4B0E5D
triadic
#240E5D #5D240E #0E5D24
tetradic
#240E5D #5D0E1F #475D0E #0E5D4B
square
#240E5D #5D0E1F #475D0E #0E5D4B
split-complementary
#240E5D #5D4B0E #1F5D0E
monochromatic
#0A041B #0F0628 #240E5D #391692 #4D1EC7

Accessibility & contrast

On white

16.21
#240E5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240E5D
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240E5D#FFFFFF#000000##FFFFFF
##240E5D1.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225F
Deuteranopia (green-blind)
#001E5C
Tritanopia (blue-blind)
#072536
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #240e5d;
/* rgb */ color: rgb(36, 14, 93);
/* oklch */ color: oklch(26.0% 0.128 286.2);
Tailwind
colors: {
  custom: {
    50: '#67508c',
    500: '#240e5d',
    950: '#000000',
  },
}
SCSS
$custom: #240e5d;
$custom-light: #67508c;
$custom-dark: #000000;
JSON
{
  "hex": "#240e5d",
  "rgb": {
    "r": 36,
    "g": 14,
    "b": 93
  },
  "hsl": {
    "h": 256.709,
    "s": 73.832,
    "l": 20.98
  },
  "oklch": {
    "l": 0.26034,
    "c": 0.12775,
    "h": 286.2
  },
  "luminance": 0.01479
}

Semantic roles & 50–950 ramp

primary
#240E5D
secondary
#7A9730
accent
#F037BD
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #240E5D

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

Preview Lab → · Contrast checker → · Palette generator →

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