#240F4A#240F4A

#240F4A is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.1% C 0.102 H 293.5°. Best body text is #FFFFFF at 16.91:1 contrast (WCAG AA passes).

Color values

HEX#240F4A
RGBrgb(36, 15, 74)
HSLhsl(261, 66%, 17%)
HSVhsv(261, 80%, 29%)
CMYKcmyk(51.4%, 79.7%, 0%, 71%)
CIE-LABlab(10.64, 26.23, -32.63)
CIE-LCHlch(10.64, 41.87, 308.80°)
OKLaboklab(24.13% 0.0407 -0.0935)
OKLCHoklch(24.13% 0.102 293.5)
XYZxyz(2.1341, 1.2111, 6.5986)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F4A #354A0F
analogous
#0F184A #240F4A #420F4A
triadic
#240F4A #4A240F #0F4A24
tetradic
#240F4A #4A0F18 #354A0F #0F4A42
square
#240F4A #4A0F18 #354A0F #0F4A42
split-complementary
#240F4A #4A420F #184A0F
monochromatic
#0C0519 #0C0519 #240F4A #3D197D #5624B0

Accessibility & contrast

On white

16.91
#240F4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240F4A
16.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F4A#FFFFFF#000000##FFFFFF
##240F4A1.0016.911.2416.91
#FFFFFF16.911.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4C
Deuteranopia (green-blind)
#001C49
Tritanopia (blue-blind)
#191E2B
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #240f4a;
/* rgb */ color: rgb(36, 15, 74);
/* oklch */ color: oklch(24.1% 0.102 293.5);
Tailwind
colors: {
  custom: {
    50: '#634f7d',
    500: '#240f4a',
    950: '#000000',
  },
}
SCSS
$custom: #240f4a;
$custom-light: #634f7d;
$custom-dark: #000000;
JSON
{
  "hex": "#240f4a",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 74
  },
  "hsl": {
    "h": 261.356,
    "s": 66.292,
    "l": 17.451
  },
  "oklch": {
    "l": 0.2413,
    "c": 0.10199,
    "h": 293.5
  },
  "luminance": 0.01211
}

Semantic roles & 50–950 ramp

primary
#240F4A
secondary
#668430
accent
#E93FAC
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #240F4A

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

Preview Lab → · Contrast checker → · Palette generator →

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