#240F49#240F49

#240F49 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.0% C 0.101 H 294.0°. Best body text is #FFFFFF at 16.94:1 contrast (WCAG AA passes).

Color values

HEX#240F49
RGBrgb(36, 15, 73)
HSLhsl(262, 66%, 17%)
HSVhsv(262, 79%, 29%)
CMYKcmyk(50.7%, 79.5%, 0%, 71.4%)
CIE-LABlab(10.54, 25.92, -32.09)
CIE-LCHlch(10.54, 41.25, 308.92°)
OKLaboklab(24.03% 0.041 -0.0919)
OKLCHoklch(24.03% 0.101 294)
XYZxyz(2.1006, 1.1977, 6.4225)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F49 #34490F
analogous
#0F1749 #240F49 #410F49
triadic
#240F49 #49240F #0F4924
tetradic
#240F49 #490F17 #34490F #0F4941
square
#240F49 #490F17 #34490F #0F4941
split-complementary
#240F49 #49410F #17490F
monochromatic
#0D0519 #0D0519 #240F49 #3D197C #5624AF

Accessibility & contrast

On white

16.94
#240F49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#240F49 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240F49
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F49#FFFFFF#000000##FFFFFF
##240F491.0016.941.2416.94
#FFFFFF16.941.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4B
Deuteranopia (green-blind)
#001C48
Tritanopia (blue-blind)
#191E2A
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #240f49;
/* rgb */ color: rgb(36, 15, 73);
/* oklch */ color: oklch(24.0% 0.101 294.0);
Tailwind
colors: {
  custom: {
    50: '#634f7c',
    500: '#240f49',
    950: '#000000',
  },
}
SCSS
$custom: #240f49;
$custom-light: #634f7c;
$custom-dark: #000000;
JSON
{
  "hex": "#240f49",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 73
  },
  "hsl": {
    "h": 261.724,
    "s": 65.909,
    "l": 17.255
  },
  "oklch": {
    "l": 0.2403,
    "c": 0.10065,
    "h": 294
  },
  "luminance": 0.01198
}

Semantic roles & 50–950 ramp

primary
#240F49
secondary
#658330
accent
#E93FAB
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #240F49

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

Preview Lab → · Contrast checker → · Palette generator →

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