#240D47#240D47

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

Color values

HEX#240D47
RGBrgb(36, 13, 71)
HSLhsl(264, 69%, 16%)
HSVhsv(264, 82%, 28%)
CMYKcmyk(49.3%, 81.7%, 0%, 72.2%)
CIE-LABlab(9.94, 26.44, -31.68)
CIE-LCHlch(9.94, 41.27, 309.84°)
OKLaboklab(23.54% 0.0437 -0.0907)
OKLCHoklch(23.54% 0.101 295.7)
XYZxyz(2.0085, 1.1178, 6.0699)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240D47 #30470D
analogous
#0D1347 #240D47 #410D47
triadic
#240D47 #47240D #0D4724
tetradic
#240D47 #470D13 #30470D #0D4741
square
#240D47 #470D13 #30470D #0D4741
split-complementary
#240D47 #47410D #13470D
monochromatic
#0D051A #0D051A #240D47 #3E167B #5820AE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##240D47#FFFFFF#000000##FFFFFF
##240D471.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)
#001C49
Deuteranopia (green-blind)
#001A46
Tritanopia (blue-blind)
#1A1C29
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #240d47;
/* rgb */ color: rgb(36, 13, 71);
/* oklch */ color: oklch(23.5% 0.101 295.7);
Tailwind
colors: {
  custom: {
    50: '#634e7b',
    500: '#240d47',
    950: '#000000',
  },
}
SCSS
$custom: #240d47;
$custom-light: #634e7b;
$custom-dark: #000000;
JSON
{
  "hex": "#240d47",
  "rgb": {
    "r": 36,
    "g": 13,
    "b": 71
  },
  "hsl": {
    "h": 263.793,
    "s": 69.048,
    "l": 16.471
  },
  "oklch": {
    "l": 0.23542,
    "c": 0.10067,
    "h": 295.7
  },
  "luminance": 0.01118
}

Semantic roles & 50–950 ramp

primary
#240D47
secondary
#61822D
accent
#EC3CA6
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060109
muted
#7A777B

Preview Lab

Preview with #240D47

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

Preview Lab → · Contrast checker → · Palette generator →

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