#240B41#240B41

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

Color values

HEX#240B41
RGBrgb(36, 11, 65)
HSLhsl(268, 71%, 15%)
HSVhsv(268, 83%, 25%)
CMYKcmyk(44.6%, 83.1%, 0%, 74.5%)
CIE-LABlab(8.96, 25.72, -29.05)
CIE-LCHlch(8.96, 38.80, 311.52°)
OKLaboklab(22.67% 0.0474 -0.083)
OKLCHoklch(22.67% 0.096 299.8)
XYZxyz(1.8011, 0.9960, 5.0974)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240B41 #28410B
analogous
#0B0D41 #240B41 #3F0B41
triadic
#240B41 #41240B #0B4124
tetradic
#240B41 #410B0D #28410B #0B413F
square
#240B41 #410B0D #28410B #0B413F
split-complementary
#240B41 #413F0B #0D410B
monochromatic
#0E041A #0E041A #240B41 #411475 #5E1DAA

Accessibility & contrast

On white

17.51
#240B41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#240B41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240B41
17.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240B41#FFFFFF#000000##FFFFFF
##240B411.0017.511.2017.51
#FFFFFF17.511.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #240b41;
/* rgb */ color: rgb(36, 11, 65);
/* oklch */ color: oklch(22.7% 0.096 299.8);
Tailwind
colors: {
  custom: {
    50: '#624c76',
    500: '#240b41',
    950: '#000000',
  },
}
SCSS
$custom: #240b41;
$custom-light: #624c76;
$custom-dark: #000000;
JSON
{
  "hex": "#240b41",
  "rgb": {
    "r": 36,
    "g": 11,
    "b": 65
  },
  "hsl": {
    "h": 267.778,
    "s": 71.053,
    "l": 14.902
  },
  "oklch": {
    "l": 0.22669,
    "c": 0.09556,
    "h": 299.8
  },
  "luminance": 0.00996
}

Semantic roles & 50–950 ramp

primary
#240B41
secondary
#577E2A
accent
#EE3A9B
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050108
muted
#7A777B

Preview Lab

Preview with #240B41

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

Preview Lab → · Contrast checker → · Palette generator →

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