#240E3C#240E3C

#240E3C is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.6% C 0.085 H 302.0°. Best body text is #FFFFFF at 17.46:1 contrast (WCAG AA passes).

Color values

HEX#240E3C
RGBrgb(36, 14, 60)
HSLhsl(269, 62%, 15%)
HSVhsv(269, 77%, 24%)
CMYKcmyk(40%, 76.7%, 0%, 76.5%)
CIE-LABlab(9.12, 22.49, -25.22)
CIE-LCHlch(9.12, 33.79, 311.72°)
OKLaboklab(22.64% 0.0447 -0.0717)
OKLCHoklch(22.64% 0.085 302)
XYZxyz(1.7000, 1.0154, 4.3805)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240E3C #263C0E
analogous
#0E0F3C #240E3C #3B0E3C
triadic
#240E3C #3C240E #0E3C24
tetradic
#240E3C #3C0E0F #263C0E #0E3C3B
square
#240E3C #3C0E0F #263C0E #0E3C3B
split-complementary
#240E3C #3C3B0E #0F3C0E
monochromatic
#0F0619 #0F0619 #240E3C #421A6E #60259F

Accessibility & contrast

On white

17.46
#240E3C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#240E3C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240E3C
17.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240E3C#FFFFFF#000000##FFFFFF
##240E3C1.0017.461.2017.46
#FFFFFF17.461.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193D
Deuteranopia (green-blind)
#001A3B
Tritanopia (blue-blind)
#1F1823
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #240e3c;
/* rgb */ color: rgb(36, 14, 60);
/* oklch */ color: oklch(22.6% 0.085 302.0);
Tailwind
colors: {
  custom: {
    50: '#614e72',
    500: '#240e3c',
    950: '#000000',
  },
}
SCSS
$custom: #240e3c;
$custom-light: #614e72;
$custom-dark: #000000;
JSON
{
  "hex": "#240e3c",
  "rgb": {
    "r": 36,
    "g": 14,
    "b": 60
  },
  "hsl": {
    "h": 268.696,
    "s": 62.162,
    "l": 14.51
  },
  "oklch": {
    "l": 0.22639,
    "c": 0.08454,
    "h": 302
  },
  "luminance": 0.01015
}

Semantic roles & 50–950 ramp

primary
#240E3C
secondary
#54772F
accent
#E54397
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050108
muted
#79777B

Preview Lab

Preview with #240E3C

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

Preview Lab → · Contrast checker → · Palette generator →

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