#240E3D#240E3D

#240E3D is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.7% C 0.086 H 301.3°. Best body text is #FFFFFF at 17.42:1 contrast (WCAG AA passes).

Color values

HEX#240E3D
RGBrgb(36, 14, 61)
HSLhsl(268, 63%, 15%)
HSVhsv(268, 77%, 24%)
CMYKcmyk(41%, 77%, 0%, 76.1%)
CIE-LABlab(9.21, 22.79, -25.80)
CIE-LCHlch(9.21, 34.42, 311.46°)
OKLaboklab(22.73% 0.0446 -0.0734)
OKLCHoklch(22.73% 0.086 301.3)
XYZxyz(1.7267, 1.0261, 4.5211)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240E3D #273D0E
analogous
#0E103D #240E3D #3C0E3D
triadic
#240E3D #3D240E #0E3D24
tetradic
#240E3D #3D0E10 #273D0E #0E3D3C
square
#240E3D #3D0E10 #273D0E #0E3D3C
split-complementary
#240E3D #3D3C0E #103D0E
monochromatic
#0F0619 #0F0619 #240E3D #41196F #5F25A1

Accessibility & contrast

On white

17.42
#240E3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240E3D
17.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240E3D#FFFFFF#000000##FFFFFF
##240E3D1.0017.421.2117.42
#FFFFFF17.421.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3E
Deuteranopia (green-blind)
#001A3C
Tritanopia (blue-blind)
#1F1924
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #240e3d;
/* rgb */ color: rgb(36, 14, 61);
/* oklch */ color: oklch(22.7% 0.086 301.3);
Tailwind
colors: {
  custom: {
    50: '#614e73',
    500: '#240e3d',
    950: '#000000',
  },
}
SCSS
$custom: #240e3d;
$custom-light: #614e73;
$custom-dark: #000000;
JSON
{
  "hex": "#240e3d",
  "rgb": {
    "r": 36,
    "g": 14,
    "b": 61
  },
  "hsl": {
    "h": 268.085,
    "s": 62.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.22729,
    "c": 0.0859,
    "h": 301.3
  },
  "luminance": 0.01026
}

Semantic roles & 50–950 ramp

primary
#240E3D
secondary
#56782F
accent
#E64299
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #240E3D

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

Preview Lab → · Contrast checker → · Palette generator →

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