#240D52#240D52

#240D52 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.7% C 0.115 H 290.5°. Best body text is #FFFFFF at 16.74:1 contrast (WCAG AA passes).

Color values

HEX#240D52
RGBrgb(36, 13, 82)
HSLhsl(260, 73%, 19%)
HSVhsv(260, 84%, 32%)
CMYKcmyk(56.1%, 84.1%, 0%, 67.8%)
CIE-LABlab(11.08, 29.85, -37.43)
CIE-LCHlch(11.08, 47.87, 308.57°)
OKLaboklab(24.69% 0.0403 -0.1076)
OKLCHoklch(24.69% 0.115 290.5)
XYZxyz(2.3940, 1.2720, 8.1004)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240D52 #3B520D
analogous
#0D1852 #240D52 #460D52
triadic
#240D52 #52240D #0D5224
tetradic
#240D52 #520D18 #3B520D #0D5246
square
#240D52 #520D18 #3B520D #0D5246
split-complementary
#240D52 #52460D #18520D
monochromatic
#0C041A #0D051D #240D52 #3B1587 #521EBC

Accessibility & contrast

On white

16.74
#240D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#240D52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240D52
16.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240D52#FFFFFF#000000##FFFFFF
##240D521.0016.741.2516.74
#FFFFFF16.741.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F54
Deuteranopia (green-blind)
#001C51
Tritanopia (blue-blind)
#14202F
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #240d52;
/* rgb */ color: rgb(36, 13, 82);
/* oklch */ color: oklch(24.7% 0.115 290.5);
Tailwind
colors: {
  custom: {
    50: '#654f83',
    500: '#240d52',
    950: '#000000',
  },
}
SCSS
$custom: #240d52;
$custom-light: #654f83;
$custom-dark: #000000;
JSON
{
  "hex": "#240d52",
  "rgb": {
    "r": 36,
    "g": 13,
    "b": 82
  },
  "hsl": {
    "h": 260,
    "s": 72.632,
    "l": 18.627
  },
  "oklch": {
    "l": 0.24693,
    "c": 0.11487,
    "h": 290.5
  },
  "luminance": 0.01272
}

Semantic roles & 50–950 ramp

primary
#240D52
secondary
#6D8D2E
accent
#EF38B2
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #240D52

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

Preview Lab → · Contrast checker → · Palette generator →

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