#240A36#240A36

#240A36 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.5% C 0.083 H 307.9°. Best body text is #FFFFFF at 17.92:1 contrast (WCAG AA passes).

Color values

HEX#240A36
RGBrgb(36, 10, 54)
HSLhsl(275, 69%, 13%)
HSVhsv(275, 81%, 21%)
CMYKcmyk(33.3%, 81.5%, 0%, 78.8%)
CIE-LABlab(7.75, 23.08, -23.09)
CIE-LCHlch(7.75, 32.64, 314.98°)
OKLaboklab(21.5% 0.051 -0.0654)
OKLCHoklch(21.5% 0.083 307.9)
XYZxyz(1.5018, 0.8585, 3.5759)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240A36 #1C360A
analogous
#0E0A36 #240A36 #360A32
triadic
#240A36 #36240A #0A3624
tetradic
#240A36 #360E0A #1C360A #0A3236
square
#240A36 #360E0A #1C360A #0A3236
split-complementary
#240A36 #32360A #0A360E
monochromatic
#11051A #11051A #240A36 #46146A #691D9D

Accessibility & contrast

On white

17.92
#240A36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#240A36 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240A36
17.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240A36#FFFFFF#000000##FFFFFF
##240A361.0017.921.1717.92
#FFFFFF17.921.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001637
Deuteranopia (green-blind)
#021735
Tritanopia (blue-blind)
#21141F
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #240a36;
/* rgb */ color: rgb(36, 10, 54);
/* oklch */ color: oklch(21.5% 0.083 307.9);
Tailwind
colors: {
  custom: {
    50: '#614b6d',
    500: '#240a36',
    950: '#000000',
  },
}
SCSS
$custom: #240a36;
$custom-light: #614b6d;
$custom-dark: #000000;
JSON
{
  "hex": "#240a36",
  "rgb": {
    "r": 36,
    "g": 10,
    "b": 54
  },
  "hsl": {
    "h": 275.455,
    "s": 68.75,
    "l": 12.549
  },
  "oklch": {
    "l": 0.21495,
    "c": 0.08296,
    "h": 307.9
  },
  "luminance": 0.00858
}

Semantic roles & 50–950 ramp

primary
#240A36
secondary
#477328
accent
#EC3C84
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050107
muted
#79777A

Preview Lab

Preview with #240A36

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

Preview Lab → · Contrast checker → · Palette generator →

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