#240C49#240C49

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

Color values

HEX#240C49
RGBrgb(36, 12, 73)
HSLhsl(264, 72%, 17%)
HSVhsv(264, 84%, 29%)
CMYKcmyk(50.7%, 83.6%, 0%, 71.4%)
CIE-LABlab(9.95, 27.60, -33.07)
CIE-LCHlch(9.95, 43.07, 309.85°)
OKLaboklab(23.61% 0.0441 -0.0948)
OKLCHoklch(23.61% 0.105 295)
XYZxyz(2.0613, 1.1190, 6.4094)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240C49 #31490C
analogous
#0C1249 #240C49 #430C49
triadic
#240C49 #49240C #0C4924
tetradic
#240C49 #490C12 #31490C #0C4943
square
#240C49 #490C12 #31490C #0C4943
split-complementary
#240C49 #49430C #12490C
monochromatic
#0D041A #0D041A #240C49 #3E157E #581DB2

Accessibility & contrast

On white

17.16
#240C49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240C49
17.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240C49#FFFFFF#000000##FFFFFF
##240C491.0017.161.2217.16
#FFFFFF17.161.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #240c49;
/* rgb */ color: rgb(36, 12, 73);
/* oklch */ color: oklch(23.6% 0.105 295.0);
Tailwind
colors: {
  custom: {
    50: '#634d7c',
    500: '#240c49',
    950: '#000000',
  },
}
SCSS
$custom: #240c49;
$custom-light: #634d7c;
$custom-dark: #000000;
JSON
{
  "hex": "#240c49",
  "rgb": {
    "r": 36,
    "g": 12,
    "b": 73
  },
  "hsl": {
    "h": 263.607,
    "s": 71.765,
    "l": 16.667
  },
  "oklch": {
    "l": 0.23611,
    "c": 0.10452,
    "h": 295
  },
  "luminance": 0.01119
}

Semantic roles & 50–950 ramp

primary
#240C49
secondary
#62852C
accent
#EE39A7
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060109
muted
#7A777B

Preview Lab

Preview with #240C49

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

Preview Lab → · Contrast checker → · Palette generator →

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