#240A40#240A40

#240A40 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.4% C 0.096 H 300.7°. Best body text is #FFFFFF at 17.61:1 contrast (WCAG AA passes).

Color values

HEX#240A40
RGBrgb(36, 10, 64)
HSLhsl(269, 73%, 15%)
HSVhsv(269, 84%, 25%)
CMYKcmyk(43.8%, 84.4%, 0%, 74.9%)
CIE-LABlab(8.67, 25.96, -28.80)
CIE-LCHlch(8.67, 38.78, 312.03°)
OKLaboklab(22.44% 0.0488 -0.0822)
OKLCHoklch(22.44% 0.096 300.7)
XYZxyz(1.7613, 0.9623, 4.9424)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240A40 #26400A
analogous
#0A0B40 #240A40 #3F0A40
triadic
#240A40 #40240A #0A4024
tetradic
#240A40 #400A0B #26400A #0A403F
square
#240A40 #400A0B #26400A #0A403F
split-complementary
#240A40 #403F0A #0B400A
monochromatic
#0F041A #0F041A #240A40 #421275 #601BAA

Accessibility & contrast

On white

17.61
#240A40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#240A40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240A40
17.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240A40#FFFFFF#000000##FFFFFF
##240A401.0017.611.1917.61
#FFFFFF17.611.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001942
Deuteranopia (green-blind)
#00183F
Tritanopia (blue-blind)
#1E1824
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #240a40;
/* rgb */ color: rgb(36, 10, 64);
/* oklch */ color: oklch(22.4% 0.096 300.7);
Tailwind
colors: {
  custom: {
    50: '#624c75',
    500: '#240a40',
    950: '#000000',
  },
}
SCSS
$custom: #240a40;
$custom-light: #624c75;
$custom-dark: #000000;
JSON
{
  "hex": "#240a40",
  "rgb": {
    "r": 36,
    "g": 10,
    "b": 64
  },
  "hsl": {
    "h": 268.889,
    "s": 72.973,
    "l": 14.51
  },
  "oklch": {
    "l": 0.22437,
    "c": 0.09562,
    "h": 300.7
  },
  "luminance": 0.00962
}

Semantic roles & 50–950 ramp

primary
#240A40
secondary
#547D29
accent
#F03897
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050108
muted
#7A777B

Preview Lab

Preview with #240A40

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

Preview Lab → · Contrast checker → · Palette generator →

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