#240E4F#240E4F

#240E4F is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.5% C 0.110 H 291.6°. Best body text is #FFFFFF at 16.79:1 contrast (WCAG AA passes).

Color values

HEX#240E4F
RGBrgb(36, 14, 79)
HSLhsl(260, 70%, 18%)
HSVhsv(260, 82%, 31%)
CMYKcmyk(54.4%, 82.3%, 0%, 69%)
CIE-LABlab(10.95, 28.38, -35.58)
CIE-LCHlch(10.95, 45.51, 308.57°)
OKLaboklab(24.5% 0.0404 -0.1022)
OKLCHoklch(24.5% 0.11 291.6)
XYZxyz(2.2955, 1.2536, 7.5166)
Luminance0.0125 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240E4F #394F0E
analogous
#0E184F #240E4F #440E4F
triadic
#240E4F #4F240E #0E4F24
tetradic
#240E4F #4F0E18 #394F0E #0E4F44
square
#240E4F #4F0E18 #394F0E #0E4F44
split-complementary
#240E4F #4F440E #184F0E
monochromatic
#0C051A #0C051B #240E4F #3C1783 #5320B7

Accessibility & contrast

On white

16.79
#240E4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#240E4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240E4F
16.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240E4F#FFFFFF#000000##FFFFFF
##240E4F1.0016.791.2516.79
#FFFFFF16.791.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E51
Deuteranopia (green-blind)
#001C4E
Tritanopia (blue-blind)
#16202E
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #240e4f;
/* rgb */ color: rgb(36, 14, 79);
/* oklch */ color: oklch(24.5% 0.110 291.6);
Tailwind
colors: {
  custom: {
    50: '#644f81',
    500: '#240e4f',
    950: '#000000',
  },
}
SCSS
$custom: #240e4f;
$custom-light: #644f81;
$custom-dark: #000000;
JSON
{
  "hex": "#240e4f",
  "rgb": {
    "r": 36,
    "g": 14,
    "b": 79
  },
  "hsl": {
    "h": 260.308,
    "s": 69.892,
    "l": 18.235
  },
  "oklch": {
    "l": 0.24504,
    "c": 0.10985,
    "h": 291.6
  },
  "luminance": 0.01254
}

Semantic roles & 50–950 ramp

primary
#240E4F
secondary
#6B8A2F
accent
#ED3BB1
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #240E4F

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

Preview Lab → · Contrast checker → · Palette generator →

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