#240C47#240C47

#240C47 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.4% C 0.102 H 296.0°. Best body text is #FFFFFF at 17.23:1 contrast (WCAG AA passes).

Color values

HEX#240C47
RGBrgb(36, 12, 71)
HSLhsl(264, 71%, 16%)
HSVhsv(264, 83%, 28%)
CMYKcmyk(49.3%, 83.1%, 0%, 72.2%)
CIE-LABlab(9.74, 26.99, -32.00)
CIE-LCHlch(9.74, 41.86, 310.14°)
OKLaboklab(23.41% 0.0447 -0.0916)
OKLCHoklch(23.41% 0.102 296)
XYZxyz(1.9961, 1.0929, 6.0658)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240C47 #2F470C
analogous
#0C1247 #240C47 #420C47
triadic
#240C47 #47240C #0C4724
tetradic
#240C47 #470C12 #2F470C #0C4742
square
#240C47 #470C12 #2F470C #0C4742
split-complementary
#240C47 #47420C #12470C
monochromatic
#0D041A #0D041A #240C47 #3F157B #591EB0

Accessibility & contrast

On white

17.23
#240C47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240C47
17.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240C47#FFFFFF#000000##FFFFFF
##240C471.0017.231.2217.23
#FFFFFF17.231.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #240c47;
/* rgb */ color: rgb(36, 12, 71);
/* oklch */ color: oklch(23.4% 0.102 296.0);
Tailwind
colors: {
  custom: {
    50: '#634d7b',
    500: '#240c47',
    950: '#000000',
  },
}
SCSS
$custom: #240c47;
$custom-light: #634d7b;
$custom-dark: #000000;
JSON
{
  "hex": "#240c47",
  "rgb": {
    "r": 36,
    "g": 12,
    "b": 71
  },
  "hsl": {
    "h": 264.407,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.23405,
    "c": 0.10196,
    "h": 296
  },
  "luminance": 0.01093
}

Semantic roles & 50–950 ramp

primary
#240C47
secondary
#60832C
accent
#EE3AA5
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060109
muted
#7A777B

Preview Lab

Preview with #240C47

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

Preview Lab → · Contrast checker → · Palette generator →

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