#240E3E#240E3E

#240E3E is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.8% C 0.087 H 300.6°. Best body text is #FFFFFF at 17.39:1 contrast (WCAG AA passes).

Color values

HEX#240E3E
RGBrgb(36, 14, 62)
HSLhsl(268, 63%, 15%)
HSVhsv(268, 77%, 24%)
CMYKcmyk(41.9%, 77.4%, 0%, 75.7%)
CIE-LABlab(9.30, 23.10, -26.37)
CIE-LCHlch(9.30, 35.05, 311.22°)
OKLaboklab(22.82% 0.0444 -0.0751)
OKLCHoklch(22.82% 0.087 300.6)
XYZxyz(1.7539, 1.0369, 4.6642)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240E3E #283E0E
analogous
#0E103E #240E3E #3C0E3E
triadic
#240E3E #3E240E #0E3E24
tetradic
#240E3E #3E0E10 #283E0E #0E3E3C
square
#240E3E #3E0E10 #283E0E #0E3E3C
split-complementary
#240E3E #3E3C0E #103E0E
monochromatic
#0E0619 #0E0619 #240E3E #411970 #5E25A2

Accessibility & contrast

On white

17.39
#240E3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240E3E
17.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240E3E#FFFFFF#000000##FFFFFF
##240E3E1.0017.391.2117.39
#FFFFFF17.391.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #240e3e;
/* rgb */ color: rgb(36, 14, 62);
/* oklch */ color: oklch(22.8% 0.087 300.6);
Tailwind
colors: {
  custom: {
    50: '#624e74',
    500: '#240e3e',
    950: '#000000',
  },
}
SCSS
$custom: #240e3e;
$custom-light: #624e74;
$custom-dark: #000000;
JSON
{
  "hex": "#240e3e",
  "rgb": {
    "r": 36,
    "g": 14,
    "b": 62
  },
  "hsl": {
    "h": 267.5,
    "s": 63.158,
    "l": 14.902
  },
  "oklch": {
    "l": 0.22821,
    "c": 0.08725,
    "h": 300.6
  },
  "luminance": 0.01037
}

Semantic roles & 50–950 ramp

primary
#240E3E
secondary
#57792F
accent
#E6429B
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #240E3E

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

Preview Lab → · Contrast checker → · Palette generator →

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