#240F48#240F48

#240F48 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.9% C 0.099 H 294.5°. Best body text is #FFFFFF at 16.98:1 contrast (WCAG AA passes).

Color values

HEX#240F48
RGBrgb(36, 15, 72)
HSLhsl(262, 66%, 17%)
HSVhsv(262, 79%, 28%)
CMYKcmyk(50%, 79.2%, 0%, 71.8%)
CIE-LABlab(10.44, 25.60, -31.56)
CIE-LCHlch(10.44, 40.64, 309.06°)
OKLaboklab(23.93% 0.0412 -0.0903)
OKLCHoklch(23.93% 0.099 294.5)
XYZxyz(2.0678, 1.1845, 6.2493)
Luminance0.0118 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F48 #33480F
analogous
#0F1748 #240F48 #410F48
triadic
#240F48 #48240F #0F4824
tetradic
#240F48 #480F17 #33480F #0F4841
square
#240F48 #480F17 #33480F #0F4841
split-complementary
#240F48 #48410F #17480F
monochromatic
#0D0519 #0D0519 #240F48 #3D1A7B #5724AD

Accessibility & contrast

On white

16.98
#240F48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240F48
16.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F48#FFFFFF#000000##FFFFFF
##240F481.0016.981.2416.98
#FFFFFF16.981.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4A
Deuteranopia (green-blind)
#001B47
Tritanopia (blue-blind)
#1A1D2A
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #240f48;
/* rgb */ color: rgb(36, 15, 72);
/* oklch */ color: oklch(23.9% 0.099 294.5);
Tailwind
colors: {
  custom: {
    50: '#634f7c',
    500: '#240f48',
    950: '#000000',
  },
}
SCSS
$custom: #240f48;
$custom-light: #634f7c;
$custom-dark: #000000;
JSON
{
  "hex": "#240f48",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 72
  },
  "hsl": {
    "h": 262.105,
    "s": 65.517,
    "l": 17.059
  },
  "oklch": {
    "l": 0.23931,
    "c": 0.09931,
    "h": 294.5
  },
  "luminance": 0.01185
}

Semantic roles & 50–950 ramp

primary
#240F48
secondary
#648230
accent
#E83FAA
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#050209
muted
#7A787B

Preview Lab

Preview with #240F48

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

Preview Lab → · Contrast checker → · Palette generator →

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