#240E40#240E40

#240E40 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.0% C 0.090 H 299.3°. Best body text is #FFFFFF at 17.33:1 contrast (WCAG AA passes).

Color values

HEX#240E40
RGBrgb(36, 14, 64)
HSLhsl(266, 64%, 15%)
HSVhsv(266, 78%, 25%)
CMYKcmyk(43.8%, 78.1%, 0%, 74.9%)
CIE-LABlab(9.48, 23.71, -27.50)
CIE-LCHlch(9.48, 36.31, 310.77°)
OKLaboklab(23.01% 0.0441 -0.0784)
OKLCHoklch(23.01% 0.09 299.3)
XYZxyz(1.8098, 1.0593, 4.9586)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240E40 #2A400E
analogous
#0E1140 #240E40 #3D0E40
triadic
#240E40 #40240E #0E4024
tetradic
#240E40 #400E11 #2A400E #0E403D
square
#240E40 #400E11 #2A400E #0E403D
split-complementary
#240E40 #403D0E #11400E
monochromatic
#0E0519 #0E0519 #240E40 #401972 #5C24A4

Accessibility & contrast

On white

17.33
#240E40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#240E40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240E40
17.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240E40#FFFFFF#000000##FFFFFF
##240E401.0017.331.2117.33
#FFFFFF17.331.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A41
Deuteranopia (green-blind)
#001A3F
Tritanopia (blue-blind)
#1E1A25
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #240e40;
/* rgb */ color: rgb(36, 14, 64);
/* oklch */ color: oklch(23.0% 0.090 299.3);
Tailwind
colors: {
  custom: {
    50: '#624e75',
    500: '#240e40',
    950: '#000000',
  },
}
SCSS
$custom: #240e40;
$custom-light: #624e75;
$custom-dark: #000000;
JSON
{
  "hex": "#240e40",
  "rgb": {
    "r": 36,
    "g": 14,
    "b": 64
  },
  "hsl": {
    "h": 266.4,
    "s": 64.103,
    "l": 15.294
  },
  "oklch": {
    "l": 0.23007,
    "c": 0.08996,
    "h": 299.3
  },
  "luminance": 0.01059
}

Semantic roles & 50–950 ramp

primary
#240E40
secondary
#597B2F
accent
#E7419E
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #240E40

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

Preview Lab → · Contrast checker → · Palette generator →

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