#240F52#240F52

#240F52 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 25.0% C 0.113 H 290.0°. Best body text is #FFFFFF at 16.60:1 contrast (WCAG AA passes).

Color values

HEX#240F52
RGBrgb(36, 15, 82)
HSLhsl(259, 69%, 19%)
HSVhsv(259, 82%, 32%)
CMYKcmyk(56.1%, 81.7%, 0%, 67.8%)
CIE-LABlab(11.45, 28.77, -36.81)
CIE-LCHlch(11.45, 46.72, 308.01°)
OKLaboklab(24.96% 0.0385 -0.1058)
OKLCHoklch(24.96% 0.113 290)
XYZxyz(2.4209, 1.3258, 8.1094)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F52 #3D520F
analogous
#0F1C52 #240F52 #460F52
triadic
#240F52 #52240F #0F5224
tetradic
#240F52 #520F1C #3D520F #0F5246
square
#240F52 #520F1C #3D520F #0F5246
split-complementary
#240F52 #52460F #1C520F
monochromatic
#0B051A #0D061E #240F52 #3B1886 #5122B9

Accessibility & contrast

On white

16.60
#240F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#240F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240F52
16.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F52#FFFFFF#000000##FFFFFF
##240F521.0016.601.2716.60
#FFFFFF16.601.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002054
Deuteranopia (green-blind)
#001D51
Tritanopia (blue-blind)
#132130
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #240f52;
/* rgb */ color: rgb(36, 15, 82);
/* oklch */ color: oklch(25.0% 0.113 290.0);
Tailwind
colors: {
  custom: {
    50: '#655083',
    500: '#240f52',
    950: '#000000',
  },
}
SCSS
$custom: #240f52;
$custom-light: #655083;
$custom-dark: #000000;
JSON
{
  "hex": "#240f52",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 82
  },
  "hsl": {
    "h": 258.806,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.24957,
    "c": 0.11257,
    "h": 290
  },
  "luminance": 0.01326
}

Semantic roles & 50–950 ramp

primary
#240F52
secondary
#6F8C31
accent
#EC3CB5
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #240F52

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

Preview Lab → · Contrast checker → · Palette generator →

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