#240E51#240E51

#240E51 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.7% C 0.112 H 290.7°. Best body text is #FFFFFF at 16.71:1 contrast (WCAG AA passes).

Color values

HEX#240E51
RGBrgb(36, 14, 81)
HSLhsl(260, 71%, 19%)
HSVhsv(260, 83%, 32%)
CMYKcmyk(55.6%, 82.7%, 0%, 68.2%)
CIE-LABlab(11.16, 29.01, -36.62)
CIE-LCHlch(11.16, 46.71, 308.39°)
OKLaboklab(24.72% 0.0398 -0.1052)
OKLCHoklch(24.72% 0.112 290.7)
XYZxyz(2.3694, 1.2831, 7.9058)
Luminance0.0128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240E51 #3B510E
analogous
#0E1A51 #240E51 #450E51
triadic
#240E51 #51240E #0E5124
tetradic
#240E51 #510E1A #3B510E #0E5145
square
#240E51 #510E1A #3B510E #0E5145
split-complementary
#240E51 #51450E #1A510E
monochromatic
#0C051A #0D051D #240E51 #3B1785 #5220B9

Accessibility & contrast

On white

16.71
#240E51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#240E51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240E51
16.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240E51#FFFFFF#000000##FFFFFF
##240E511.0016.711.2616.71
#FFFFFF16.711.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F53
Deuteranopia (green-blind)
#001C50
Tritanopia (blue-blind)
#14212F
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #240e51;
/* rgb */ color: rgb(36, 14, 81);
/* oklch */ color: oklch(24.7% 0.112 290.7);
Tailwind
colors: {
  custom: {
    50: '#654f83',
    500: '#240e51',
    950: '#000000',
  },
}
SCSS
$custom: #240e51;
$custom-light: #654f83;
$custom-dark: #000000;
JSON
{
  "hex": "#240e51",
  "rgb": {
    "r": 36,
    "g": 14,
    "b": 81
  },
  "hsl": {
    "h": 259.701,
    "s": 70.526,
    "l": 18.627
  },
  "oklch": {
    "l": 0.24716,
    "c": 0.11244,
    "h": 290.7
  },
  "luminance": 0.01283
}

Semantic roles & 50–950 ramp

primary
#240E51
secondary
#6D8C2F
accent
#ED3AB3
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020A
muted
#7A787C

Preview Lab

Preview with #240E51

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

Preview Lab → · Contrast checker → · Palette generator →

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