#240A4A#240A4A

#240A4A is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.5% C 0.108 H 295.0°. Best body text is #FFFFFF at 17.25:1 contrast (WCAG AA passes).

Color values

HEX#240A4A
RGBrgb(36, 10, 74)
HSLhsl(264, 76%, 16%)
HSVhsv(264, 86%, 29%)
CMYKcmyk(51.4%, 86.5%, 0%, 71%)
CIE-LABlab(9.69, 28.93, -34.18)
CIE-LCHlch(9.69, 44.78, 310.24°)
OKLaboklab(23.47% 0.0457 -0.098)
OKLCHoklch(23.47% 0.108 295)
XYZxyz(2.0718, 1.0865, 6.5778)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240A4A #304A0A
analogous
#0A104A #240A4A #440A4A
triadic
#240A4A #4A240A #0A4A24
tetradic
#240A4A #4A0A10 #304A0A #0A4A44
square
#240A4A #4A0A10 #304A0A #0A4A44
split-complementary
#240A4A #4A440A #104A0A
monochromatic
#0D041B #0D041B #240A4A #3E1180 #5819B6

Accessibility & contrast

On white

17.25
#240A4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#240A4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240A4A
17.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240A4A#FFFFFF#000000##FFFFFF
##240A4A1.0017.251.2217.25
#FFFFFF17.251.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4C
Deuteranopia (green-blind)
#001A49
Tritanopia (blue-blind)
#191C2A
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #240a4a;
/* rgb */ color: rgb(36, 10, 74);
/* oklch */ color: oklch(23.5% 0.108 295.0);
Tailwind
colors: {
  custom: {
    50: '#644d7d',
    500: '#240a4a',
    950: '#000000',
  },
}
SCSS
$custom: #240a4a;
$custom-light: #644d7d;
$custom-dark: #000000;
JSON
{
  "hex": "#240a4a",
  "rgb": {
    "r": 36,
    "g": 10,
    "b": 74
  },
  "hsl": {
    "h": 264.375,
    "s": 76.19,
    "l": 16.471
  },
  "oklch": {
    "l": 0.23465,
    "c": 0.10813,
    "h": 295
  },
  "luminance": 0.01087
}

Semantic roles & 50–950 ramp

primary
#240A4A
secondary
#618729
accent
#F335A6
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06010A
muted
#7A777C

Preview Lab

Preview with #240A4A

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

Preview Lab → · Contrast checker → · Palette generator →

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