#240C41#240C41

#240C41 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.8% C 0.094 H 299.4°. Best body text is #FFFFFF at 17.44:1 contrast (WCAG AA passes).

Color values

HEX#240C41
RGBrgb(36, 12, 65)
HSLhsl(267, 69%, 15%)
HSVhsv(267, 82%, 25%)
CMYKcmyk(44.6%, 81.5%, 0%, 74.5%)
CIE-LABlab(9.15, 25.17, -28.73)
CIE-LCHlch(9.15, 38.20, 311.22°)
OKLaboklab(22.81% 0.0463 -0.082)
OKLCHoklch(22.81% 0.094 299.4)
XYZxyz(1.8129, 1.0196, 5.1013)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240C41 #29410C
analogous
#0C0E41 #240C41 #3E0C41
triadic
#240C41 #41240C #0C4124
tetradic
#240C41 #410C0E #29410C #0C413E
square
#240C41 #410C0E #29410C #0C413E
split-complementary
#240C41 #413E0C #0E410C
monochromatic
#0E051A #0E051A #240C41 #411675 #5D1FA8

Accessibility & contrast

On white

17.44
#240C41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240C41
17.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240C41#FFFFFF#000000##FFFFFF
##240C411.0017.441.2017.44
#FFFFFF17.441.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A43
Deuteranopia (green-blind)
#001940
Tritanopia (blue-blind)
#1D1925
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #240c41;
/* rgb */ color: rgb(36, 12, 65);
/* oklch */ color: oklch(22.8% 0.094 299.4);
Tailwind
colors: {
  custom: {
    50: '#624d76',
    500: '#240c41',
    950: '#000000',
  },
}
SCSS
$custom: #240c41;
$custom-light: #624d76;
$custom-dark: #000000;
JSON
{
  "hex": "#240c41",
  "rgb": {
    "r": 36,
    "g": 12,
    "b": 65
  },
  "hsl": {
    "h": 267.17,
    "s": 68.831,
    "l": 15.098
  },
  "oklch": {
    "l": 0.22807,
    "c": 0.09419,
    "h": 299.4
  },
  "luminance": 0.0102
}

Semantic roles & 50–950 ramp

primary
#240C41
secondary
#587D2C
accent
#EC3C9C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050108
muted
#7A777B

Preview Lab

Preview with #240C41

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

Preview Lab → · Contrast checker → · Palette generator →

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