#240C4B#240C4B

#240C4B is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.8% C 0.107 H 294.0°. Best body text is #FFFFFF at 17.08:1 contrast (WCAG AA passes).

Color values

HEX#240C4B
RGBrgb(36, 12, 75)
HSLhsl(263, 72%, 17%)
HSVhsv(263, 84%, 29%)
CMYKcmyk(52%, 84%, 0%, 70.6%)
CIE-LABlab(10.15, 28.21, -34.12)
CIE-LCHlch(10.15, 44.27, 309.59°)
OKLaboklab(23.82% 0.0435 -0.0979)
OKLCHoklch(23.82% 0.107 294)
XYZxyz(2.1287, 1.1459, 6.7643)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240C4B #334B0C
analogous
#0C144B #240C4B #440C4B
triadic
#240C4B #4B240C #0C4B24
tetradic
#240C4B #4B0C14 #334B0C #0C4B44
square
#240C4B #4B0C14 #334B0C #0C4B44
split-complementary
#240C4B #4B440C #144B0C
monochromatic
#0D041A #0D041A #240C4B #3D1480 #571DB5

Accessibility & contrast

On white

17.08
#240C4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#240C4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240C4B
17.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240C4B#FFFFFF#000000##FFFFFF
##240C4B1.0017.081.2317.08
#FFFFFF17.081.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4D
Deuteranopia (green-blind)
#001B4A
Tritanopia (blue-blind)
#181D2B
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #240c4b;
/* rgb */ color: rgb(36, 12, 75);
/* oklch */ color: oklch(23.8% 0.107 294.0);
Tailwind
colors: {
  custom: {
    50: '#644e7e',
    500: '#240c4b',
    950: '#000000',
  },
}
SCSS
$custom: #240c4b;
$custom-light: #644e7e;
$custom-dark: #000000;
JSON
{
  "hex": "#240c4b",
  "rgb": {
    "r": 36,
    "g": 12,
    "b": 75
  },
  "hsl": {
    "h": 262.857,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.23819,
    "c": 0.10708,
    "h": 294
  },
  "luminance": 0.01146
}

Semantic roles & 50–950 ramp

primary
#240C4B
secondary
#64872C
accent
#EF39AA
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06010A
muted
#7A777C

Preview Lab

Preview with #240C4B

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

Preview Lab → · Contrast checker → · Palette generator →

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