#240C48#240C48

#240C48 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.5% C 0.103 H 295.5°. Best body text is #FFFFFF at 17.20:1 contrast (WCAG AA passes).

Color values

HEX#240C48
RGBrgb(36, 12, 72)
HSLhsl(264, 71%, 16%)
HSVhsv(264, 83%, 28%)
CMYKcmyk(50%, 83.3%, 0%, 71.8%)
CIE-LABlab(9.84, 27.29, -32.54)
CIE-LCHlch(9.84, 42.47, 309.99°)
OKLaboklab(23.51% 0.0444 -0.0932)
OKLCHoklch(23.51% 0.103 295.5)
XYZxyz(2.0284, 1.1058, 6.2362)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240C48 #30480C
analogous
#0C1248 #240C48 #420C48
triadic
#240C48 #48240C #0C4824
tetradic
#240C48 #480C12 #30480C #0C4842
square
#240C48 #480C12 #30480C #0C4842
split-complementary
#240C48 #48420C #12480C
monochromatic
#0D041A #0D041A #240C48 #3E157C #581DB1

Accessibility & contrast

On white

17.20
#240C48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240C48
17.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240C48#FFFFFF#000000##FFFFFF
##240C481.0017.201.2217.20
#FFFFFF17.201.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4A
Deuteranopia (green-blind)
#001A47
Tritanopia (blue-blind)
#1A1C29
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #240c48;
/* rgb */ color: rgb(36, 12, 72);
/* oklch */ color: oklch(23.5% 0.103 295.5);
Tailwind
colors: {
  custom: {
    50: '#634d7c',
    500: '#240c48',
    950: '#000000',
  },
}
SCSS
$custom: #240c48;
$custom-light: #634d7c;
$custom-dark: #000000;
JSON
{
  "hex": "#240c48",
  "rgb": {
    "r": 36,
    "g": 12,
    "b": 72
  },
  "hsl": {
    "h": 264,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.23507,
    "c": 0.10324,
    "h": 295.5
  },
  "luminance": 0.01106
}

Semantic roles & 50–950 ramp

primary
#240C48
secondary
#61842C
accent
#EE3AA6
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060109
muted
#7A777B

Preview Lab

Preview with #240C48

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

Preview Lab → · Contrast checker → · Palette generator →

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