#240F50#240F50

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

Color values

HEX#240F50
RGBrgb(36, 15, 80)
HSLhsl(259, 68%, 19%)
HSVhsv(259, 81%, 31%)
CMYKcmyk(55%, 81.3%, 0%, 68.6%)
CIE-LABlab(11.25, 28.14, -35.78)
CIE-LCHlch(11.25, 45.52, 308.18°)
OKLaboklab(24.75% 0.0391 -0.1027)
OKLCHoklch(24.75% 0.11 290.8)
XYZxyz(2.3459, 1.2958, 7.7144)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F50 #3B500F
analogous
#0F1A50 #240F50 #440F50
triadic
#240F50 #50240F #0F5024
tetradic
#240F50 #500F1A #3B500F #0F5044
square
#240F50 #500F1A #3B500F #0F5044
split-complementary
#240F50 #50440F #1A500F
monochromatic
#0C051A #0D051C #240F50 #3B1984 #5222B7

Accessibility & contrast

On white

16.68
#240F50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#240F50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240F50
16.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F50#FFFFFF#000000##FFFFFF
##240F501.0016.681.2616.68
#FFFFFF16.681.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F52
Deuteranopia (green-blind)
#001D4F
Tritanopia (blue-blind)
#15212E
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #240f50;
/* rgb */ color: rgb(36, 15, 80);
/* oklch */ color: oklch(24.7% 0.110 290.8);
Tailwind
colors: {
  custom: {
    50: '#645082',
    500: '#240f50',
    950: '#000000',
  },
}
SCSS
$custom: #240f50;
$custom-light: #645082;
$custom-dark: #000000;
JSON
{
  "hex": "#240f50",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 80
  },
  "hsl": {
    "h": 259.385,
    "s": 68.421,
    "l": 18.627
  },
  "oklch": {
    "l": 0.24746,
    "c": 0.10995,
    "h": 290.8
  },
  "luminance": 0.01296
}

Semantic roles & 50–950 ramp

primary
#240F50
secondary
#6D8A31
accent
#EB3DB3
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020A
muted
#7A787C

Preview Lab

Preview with #240F50

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

Preview Lab → · Contrast checker → · Palette generator →

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