#240E56#240E56

#240E56 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.119 H 288.7°. Best body text is #FFFFFF at 16.51:1 contrast (WCAG AA passes).

Color values

HEX#240E56
RGBrgb(36, 14, 86)
HSLhsl(258, 72%, 20%)
HSVhsv(258, 84%, 34%)
CMYKcmyk(58.1%, 83.7%, 0%, 66.3%)
CIE-LABlab(11.69, 30.58, -39.14)
CIE-LCHlch(11.69, 49.67, 307.99°)
OKLaboklab(25.26% 0.0381 -0.1126)
OKLCHoklch(25.26% 0.119 288.7)
XYZxyz(2.5638, 1.3609, 8.9299)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240E56 #40560E
analogous
#0E1C56 #240E56 #480E56
triadic
#240E56 #56240E #0E5624
tetradic
#240E56 #560E1C #40560E #0E5648
square
#240E56 #560E1C #40560E #0E5648
split-complementary
#240E56 #56480E #1C560E
monochromatic
#0B041A #0E0521 #240E56 #3A178B #501FBF

Accessibility & contrast

On white

16.51
#240E56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240E56
16.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240E56#FFFFFF#000000##FFFFFF
##240E561.0016.511.2716.51
#FFFFFF16.511.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002058
Deuteranopia (green-blind)
#001D55
Tritanopia (blue-blind)
#102332
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #240e56;
/* rgb */ color: rgb(36, 14, 86);
/* oklch */ color: oklch(25.3% 0.119 288.7);
Tailwind
colors: {
  custom: {
    50: '#664f86',
    500: '#240e56',
    950: '#000000',
  },
}
SCSS
$custom: #240e56;
$custom-light: #664f86;
$custom-dark: #000000;
JSON
{
  "hex": "#240e56",
  "rgb": {
    "r": 36,
    "g": 14,
    "b": 86
  },
  "hsl": {
    "h": 258.333,
    "s": 72,
    "l": 19.608
  },
  "oklch": {
    "l": 0.25255,
    "c": 0.11887,
    "h": 288.7
  },
  "luminance": 0.01361
}

Semantic roles & 50–950 ramp

primary
#240E56
secondary
#739030
accent
#EF39B7
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #240E56

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

Preview Lab → · Contrast checker → · Palette generator →

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