#240C46#240C46

#240C46 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.3% C 0.101 H 296.5°. Best body text is #FFFFFF at 17.27:1 contrast (WCAG AA passes).

Color values

HEX#240C46
RGBrgb(36, 12, 70)
HSLhsl(265, 71%, 16%)
HSVhsv(265, 83%, 27%)
CMYKcmyk(48.6%, 82.9%, 0%, 72.5%)
CIE-LABlab(9.64, 26.68, -31.46)
CIE-LCHlch(9.64, 41.25, 310.30°)
OKLaboklab(23.3% 0.045 -0.0901)
OKLCHoklch(23.3% 0.101 296.5)
XYZxyz(1.9642, 1.0802, 5.8982)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240C46 #2E460C
analogous
#0C1146 #240C46 #410C46
triadic
#240C46 #46240C #0C4624
tetradic
#240C46 #460C11 #2E460C #0C4641
square
#240C46 #460C11 #2E460C #0C4641
split-complementary
#240C46 #46410C #11460C
monochromatic
#0D041A #0D041A #240C46 #3F157A #5A1EAE

Accessibility & contrast

On white

17.27
#240C46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240C46
17.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240C46#FFFFFF#000000##FFFFFF
##240C461.0017.271.2217.27
#FFFFFF17.271.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B48
Deuteranopia (green-blind)
#001A45
Tritanopia (blue-blind)
#1B1B28
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #240c46;
/* rgb */ color: rgb(36, 12, 70);
/* oklch */ color: oklch(23.3% 0.101 296.5);
Tailwind
colors: {
  custom: {
    50: '#634d7a',
    500: '#240c46',
    950: '#000000',
  },
}
SCSS
$custom: #240c46;
$custom-light: #634d7a;
$custom-dark: #000000;
JSON
{
  "hex": "#240c46",
  "rgb": {
    "r": 36,
    "g": 12,
    "b": 70
  },
  "hsl": {
    "h": 264.828,
    "s": 70.732,
    "l": 16.078
  },
  "oklch": {
    "l": 0.23303,
    "c": 0.10067,
    "h": 296.5
  },
  "luminance": 0.0108
}

Semantic roles & 50–950 ramp

primary
#240C46
secondary
#5E822C
accent
#ED3AA3
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050109
muted
#7A777B

Preview Lab

Preview with #240C46

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

Preview Lab → · Contrast checker → · Palette generator →

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