#240C45#240C45

#240C45 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.2% C 0.099 H 297.1°. Best body text is #FFFFFF at 17.30:1 contrast (WCAG AA passes).

Color values

HEX#240C45
RGBrgb(36, 12, 69)
HSLhsl(265, 70%, 16%)
HSVhsv(265, 83%, 27%)
CMYKcmyk(47.8%, 82.6%, 0%, 72.9%)
CIE-LABlab(9.54, 26.38, -30.92)
CIE-LCHlch(9.54, 40.65, 310.47°)
OKLaboklab(23.2% 0.0453 -0.0885)
OKLCHoklch(23.2% 0.099 297.1)
XYZxyz(1.9329, 1.0676, 5.7333)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240C45 #2D450C
analogous
#0C1045 #240C45 #400C45
triadic
#240C45 #45240C #0C4524
tetradic
#240C45 #450C10 #2D450C #0C4540
square
#240C45 #450C10 #2D450C #0C4540
split-complementary
#240C45 #45400C #10450C
monochromatic
#0E051A #0E051A #240C45 #3F1579 #5A1EAD

Accessibility & contrast

On white

17.30
#240C45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#240C45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240C45
17.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240C45#FFFFFF#000000##FFFFFF
##240C451.0017.301.2117.30
#FFFFFF17.301.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B47
Deuteranopia (green-blind)
#001A44
Tritanopia (blue-blind)
#1B1B27
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #240c45;
/* rgb */ color: rgb(36, 12, 69);
/* oklch */ color: oklch(23.2% 0.099 297.1);
Tailwind
colors: {
  custom: {
    50: '#634d79',
    500: '#240c45',
    950: '#000000',
  },
}
SCSS
$custom: #240c45;
$custom-light: #634d79;
$custom-dark: #000000;
JSON
{
  "hex": "#240c45",
  "rgb": {
    "r": 36,
    "g": 12,
    "b": 69
  },
  "hsl": {
    "h": 265.263,
    "s": 70.37,
    "l": 15.882
  },
  "oklch": {
    "l": 0.23202,
    "c": 0.09938,
    "h": 297.1
  },
  "luminance": 0.01068
}

Semantic roles & 50–950 ramp

primary
#240C45
secondary
#5D812C
accent
#ED3BA2
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050109
muted
#7A777B

Preview Lab

Preview with #240C45

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

Preview Lab → · Contrast checker → · Palette generator →

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