#240E30#240E30

#240E30 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.6% C 0.068 H 311.9°. Best body text is #FFFFFF at 17.79:1 contrast (WCAG AA passes).

Color values

HEX#240E30
RGBrgb(36, 14, 48)
HSLhsl(279, 55%, 12%)
HSVhsv(279, 71%, 19%)
CMYKcmyk(25%, 70.8%, 0%, 81.2%)
CIE-LABlab(8.15, 18.98, -18.05)
CIE-LCHlch(8.15, 26.20, 316.44°)
OKLaboklab(21.63% 0.0455 -0.0507)
OKLCHoklch(21.63% 0.068 311.9)
XYZxyz(1.4180, 0.9026, 2.8952)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240E30 #1A300E
analogous
#130E30 #240E30 #300E2B
triadic
#240E30 #30240E #0E3024
tetradic
#240E30 #30130E #1A300E #0E2B30
square
#240E30 #30130E #1A300E #0E2B30
split-complementary
#240E30 #2B300E #0E3013
monochromatic
#120718 #120718 #240E30 #481C5F #6B2A8F

Accessibility & contrast

On white

17.79
#240E30 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#240E30 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240E30
17.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240E30#FFFFFF#000000##FFFFFF
##240E301.0017.791.1817.79
#FFFFFF17.791.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041731
Deuteranopia (green-blind)
#0C182F
Tritanopia (blue-blind)
#23141D
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #240e30;
/* rgb */ color: rgb(36, 14, 48);
/* oklch */ color: oklch(21.6% 0.068 311.9);
Tailwind
colors: {
  custom: {
    50: '#604d68',
    500: '#240e30',
    950: '#000000',
  },
}
SCSS
$custom: #240e30;
$custom-light: #604d68;
$custom-dark: #000000;
JSON
{
  "hex": "#240e30",
  "rgb": {
    "r": 36,
    "g": 14,
    "b": 48
  },
  "hsl": {
    "h": 278.824,
    "s": 54.839,
    "l": 12.157
  },
  "oklch": {
    "l": 0.2163,
    "c": 0.06811,
    "h": 311.9
  },
  "luminance": 0.00903
}

Semantic roles & 50–950 ramp

primary
#240E30
secondary
#446A2F
accent
#DE4A7E
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#050106
muted
#79777A

Preview Lab

Preview with #240E30

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

Preview Lab → · Contrast checker → · Palette generator →

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