#240B4A#240B4A

#240B4A is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.6% C 0.107 H 294.7°. Best body text is #FFFFFF at 17.19:1 contrast (WCAG AA passes).

Color values

HEX#240B4A
RGBrgb(36, 11, 74)
HSLhsl(264, 74%, 17%)
HSVhsv(264, 85%, 29%)
CMYKcmyk(51.4%, 85.1%, 0%, 71%)
CIE-LABlab(9.87, 28.43, -33.89)
CIE-LCHlch(9.87, 44.23, 309.99°)
OKLaboklab(23.59% 0.0448 -0.0972)
OKLCHoklch(23.59% 0.107 294.7)
XYZxyz(2.0829, 1.1088, 6.5815)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240B4A #314A0B
analogous
#0B114A #240B4A #440B4A
triadic
#240B4A #4A240B #0B4A24
tetradic
#240B4A #4A0B11 #314A0B #0B4A44
square
#240B4A #4A0B11 #314A0B #0B4A44
split-complementary
#240B4A #4A440B #114A0B
monochromatic
#0D041B #0D041B #240B4A #3E137F #581BB5

Accessibility & contrast

On white

17.19
#240B4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240B4A
17.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240B4A#FFFFFF#000000##FFFFFF
##240B4A1.0017.191.2217.19
#FFFFFF17.191.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #240b4a;
/* rgb */ color: rgb(36, 11, 74);
/* oklch */ color: oklch(23.6% 0.107 294.7);
Tailwind
colors: {
  custom: {
    50: '#644d7d',
    500: '#240b4a',
    950: '#000000',
  },
}
SCSS
$custom: #240b4a;
$custom-light: #644d7d;
$custom-dark: #000000;
JSON
{
  "hex": "#240b4a",
  "rgb": {
    "r": 36,
    "g": 11,
    "b": 74
  },
  "hsl": {
    "h": 263.81,
    "s": 74.118,
    "l": 16.667
  },
  "oklch": {
    "l": 0.23587,
    "c": 0.10699,
    "h": 294.7
  },
  "luminance": 0.01109
}

Semantic roles & 50–950 ramp

primary
#240B4A
secondary
#62862B
accent
#F137A7
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06010A
muted
#7A777C

Preview Lab

Preview with #240B4A

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

Preview Lab → · Contrast checker → · Palette generator →

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