#240B39#240B39

#240B39 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.9% C 0.085 H 305.2°. Best body text is #FFFFFF at 17.77:1 contrast (WCAG AA passes).

Color values

HEX#240B39
RGBrgb(36, 11, 57)
HSLhsl(273, 68%, 13%)
HSVhsv(273, 81%, 22%)
CMYKcmyk(36.8%, 80.7%, 0%, 77.6%)
CIE-LABlab(8.22, 23.38, -24.52)
CIE-LCHlch(8.22, 33.88, 313.63°)
OKLaboklab(21.91% 0.0492 -0.0697)
OKLCHoklch(21.91% 0.085 305.2)
XYZxyz(1.5856, 0.9098, 3.9622)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240B39 #20390B
analogous
#0D0B39 #240B39 #390B37
triadic
#240B39 #39240B #0B3924
tetradic
#240B39 #390D0B #20390B #0B3739
square
#240B39 #390D0B #20390B #0B3739
split-complementary
#240B39 #37390B #0B390D
monochromatic
#10051A #10051A #240B39 #44156C #651FA0

Accessibility & contrast

On white

17.77
#240B39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#240B39 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240B39
17.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240B39#FFFFFF#000000##FFFFFF
##240B391.0017.771.1817.77
#FFFFFF17.771.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173A
Deuteranopia (green-blind)
#001838
Tritanopia (blue-blind)
#201621
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #240b39;
/* rgb */ color: rgb(36, 11, 57);
/* oklch */ color: oklch(21.9% 0.085 305.2);
Tailwind
colors: {
  custom: {
    50: '#614c70',
    500: '#240b39',
    950: '#000000',
  },
}
SCSS
$custom: #240b39;
$custom-light: #614c70;
$custom-dark: #000000;
JSON
{
  "hex": "#240b39",
  "rgb": {
    "r": 36,
    "g": 11,
    "b": 57
  },
  "hsl": {
    "h": 272.609,
    "s": 67.647,
    "l": 13.333
  },
  "oklch": {
    "l": 0.2191,
    "c": 0.08527,
    "h": 305.2
  },
  "luminance": 0.0091
}

Semantic roles & 50–950 ramp

primary
#240B39
secondary
#4D762A
accent
#EB3D8C
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050107
muted
#79777A

Preview Lab

Preview with #240B39

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

Preview Lab → · Contrast checker → · Palette generator →

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