#240D45#240D45

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

Color values

HEX#240D45
RGBrgb(36, 13, 69)
HSLhsl(265, 68%, 16%)
HSVhsv(265, 81%, 27%)
CMYKcmyk(47.8%, 81.2%, 0%, 72.9%)
CIE-LABlab(9.74, 25.83, -30.60)
CIE-LCHlch(9.74, 40.04, 310.16°)
OKLaboklab(23.34% 0.0442 -0.0875)
OKLCHoklch(23.34% 0.098 296.8)
XYZxyz(1.9454, 1.0925, 5.7375)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240D45 #2E450D
analogous
#0D1245 #240D45 #400D45
triadic
#240D45 #45240D #0D4524
tetradic
#240D45 #450D12 #2E450D #0D4540
square
#240D45 #450D12 #2E450D #0D4540
split-complementary
#240D45 #45400D #12450D
monochromatic
#0D051A #0D051A #240D45 #3F1778 #5A20AC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##240D45#FFFFFF#000000##FFFFFF
##240D451.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)
#001B47
Deuteranopia (green-blind)
#001A44
Tritanopia (blue-blind)
#1B1B28
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #240d45;
/* rgb */ color: rgb(36, 13, 69);
/* oklch */ color: oklch(23.3% 0.098 296.8);
Tailwind
colors: {
  custom: {
    50: '#634e79',
    500: '#240d45',
    950: '#000000',
  },
}
SCSS
$custom: #240d45;
$custom-light: #634e79;
$custom-dark: #000000;
JSON
{
  "hex": "#240d45",
  "rgb": {
    "r": 36,
    "g": 13,
    "b": 69
  },
  "hsl": {
    "h": 264.643,
    "s": 68.293,
    "l": 16.078
  },
  "oklch": {
    "l": 0.23342,
    "c": 0.09805,
    "h": 296.8
  },
  "luminance": 0.01093
}

Semantic roles & 50–950 ramp

primary
#240D45
secondary
#5E802D
accent
#EB3DA3
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050109
muted
#7A777B

Preview Lab

Preview with #240D45

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

Preview Lab → · Contrast checker → · Palette generator →

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