#240A41#240A41

#240A41 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.5% C 0.097 H 300.1°. Best body text is #FFFFFF at 17.58:1 contrast (WCAG AA passes).

Color values

HEX#240A41
RGBrgb(36, 10, 65)
HSLhsl(268, 73%, 15%)
HSVhsv(268, 85%, 25%)
CMYKcmyk(44.6%, 84.6%, 0%, 74.5%)
CIE-LABlab(8.77, 26.25, -29.36)
CIE-LCHlch(8.77, 39.38, 311.81°)
OKLaboklab(22.54% 0.0485 -0.0838)
OKLCHoklch(22.54% 0.097 300.1)
XYZxyz(1.7900, 0.9738, 5.0937)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240A41 #27410A
analogous
#0A0B41 #240A41 #400A41
triadic
#240A41 #41240A #0A4124
tetradic
#240A41 #410A0B #27410A #0A4140
square
#240A41 #410A0B #27410A #0A4140
split-complementary
#240A41 #41400A #0B410A
monochromatic
#0F041B #0F041B #240A41 #411276 #5F1AAB

Accessibility & contrast

On white

17.58
#240A41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240A41
17.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240A41#FFFFFF#000000##FFFFFF
##240A411.0017.581.1917.58
#FFFFFF17.581.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001943
Deuteranopia (green-blind)
#001940
Tritanopia (blue-blind)
#1D1825
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #240a41;
/* rgb */ color: rgb(36, 10, 65);
/* oklch */ color: oklch(22.5% 0.097 300.1);
Tailwind
colors: {
  custom: {
    50: '#624c76',
    500: '#240a41',
    950: '#000000',
  },
}
SCSS
$custom: #240a41;
$custom-light: #624c76;
$custom-dark: #000000;
JSON
{
  "hex": "#240a41",
  "rgb": {
    "r": 36,
    "g": 10,
    "b": 65
  },
  "hsl": {
    "h": 268.364,
    "s": 73.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.22536,
    "c": 0.09688,
    "h": 300.1
  },
  "luminance": 0.00974
}

Semantic roles & 50–950 ramp

primary
#240A41
secondary
#567E29
accent
#F03899
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050108
muted
#7A777B

Preview Lab

Preview with #240A41

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

Preview Lab → · Contrast checker → · Palette generator →

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