#240E54#240E54

#240E54 is a dark, moderate violet. Relative luminance 0.013; OKLCH L 25.0% C 0.116 H 289.5°. Best body text is #FFFFFF at 16.59:1 contrast (WCAG AA passes).

Color values

HEX#240E54
RGBrgb(36, 14, 84)
HSLhsl(259, 71%, 19%)
HSVhsv(259, 83%, 33%)
CMYKcmyk(57.1%, 83.3%, 0%, 67.1%)
CIE-LABlab(11.48, 29.95, -38.14)
CIE-LCHlch(11.48, 48.49, 308.14°)
OKLaboklab(25.04% 0.0388 -0.1096)
OKLCHoklch(25.04% 0.116 289.5)
XYZxyz(2.4844, 1.3291, 8.5114)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240E54 #3E540E
analogous
#0E1B54 #240E54 #470E54
triadic
#240E54 #54240E #0E5424
tetradic
#240E54 #540E1B #3E540E #0E5447
square
#240E54 #540E1B #3E540E #0E5447
split-complementary
#240E54 #54470E #1B540E
monochromatic
#0B041A #0E0520 #240E54 #3A1788 #511FBD

Accessibility & contrast

On white

16.59
#240E54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#240E54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240E54
16.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240E54#FFFFFF#000000##FFFFFF
##240E541.0016.591.2716.59
#FFFFFF16.591.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002056
Deuteranopia (green-blind)
#001D53
Tritanopia (blue-blind)
#122230
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #240e54;
/* rgb */ color: rgb(36, 14, 84);
/* oklch */ color: oklch(25.0% 0.116 289.5);
Tailwind
colors: {
  custom: {
    50: '#654f85',
    500: '#240e54',
    950: '#000000',
  },
}
SCSS
$custom: #240e54;
$custom-light: #654f85;
$custom-dark: #000000;
JSON
{
  "hex": "#240e54",
  "rgb": {
    "r": 36,
    "g": 14,
    "b": 84
  },
  "hsl": {
    "h": 258.857,
    "s": 71.429,
    "l": 19.216
  },
  "oklch": {
    "l": 0.25038,
    "c": 0.11631,
    "h": 289.5
  },
  "luminance": 0.01329
}

Semantic roles & 50–950 ramp

primary
#240E54
secondary
#718E2F
accent
#EE3AB5
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #240E54

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

Preview Lab → · Contrast checker → · Palette generator →

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