#240E55#240E55

#240E55 is a dark, moderate violet. Relative luminance 0.013; OKLCH L 25.1% C 0.118 H 289.1°. Best body text is #FFFFFF at 16.55:1 contrast (WCAG AA passes).

Color values

HEX#240E55
RGBrgb(36, 14, 85)
HSLhsl(259, 72%, 19%)
HSVhsv(259, 84%, 33%)
CMYKcmyk(57.6%, 83.5%, 0%, 66.7%)
CIE-LABlab(11.59, 30.26, -38.64)
CIE-LCHlch(11.59, 49.08, 308.07°)
OKLaboklab(25.15% 0.0385 -0.1111)
OKLCHoklch(25.15% 0.118 289.1)
XYZxyz(2.5238, 1.3449, 8.7192)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240E55 #3F550E
analogous
#0E1B55 #240E55 #480E55
triadic
#240E55 #55240E #0E5524
tetradic
#240E55 #550E1B #3F550E #0E5548
square
#240E55 #550E1B #3F550E #0E5548
split-complementary
#240E55 #55480E #1B550E
monochromatic
#0B041A #0E0520 #240E55 #3A178A #511FBE

Accessibility & contrast

On white

16.55
#240E55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240E55
16.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240E55#FFFFFF#000000##FFFFFF
##240E551.0016.551.2716.55
#FFFFFF16.551.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002057
Deuteranopia (green-blind)
#001D54
Tritanopia (blue-blind)
#112231
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #240e55;
/* rgb */ color: rgb(36, 14, 85);
/* oklch */ color: oklch(25.1% 0.118 289.1);
Tailwind
colors: {
  custom: {
    50: '#654f86',
    500: '#240e55',
    950: '#000000',
  },
}
SCSS
$custom: #240e55;
$custom-light: #654f86;
$custom-dark: #000000;
JSON
{
  "hex": "#240e55",
  "rgb": {
    "r": 36,
    "g": 14,
    "b": 85
  },
  "hsl": {
    "h": 258.592,
    "s": 71.717,
    "l": 19.412
  },
  "oklch": {
    "l": 0.25146,
    "c": 0.11759,
    "h": 289.1
  },
  "luminance": 0.01345
}

Semantic roles & 50–950 ramp

primary
#240E55
secondary
#728F30
accent
#EE39B6
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #240E55

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

Preview Lab → · Contrast checker → · Palette generator →

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