#240F4B#240F4B

#240F4B is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.2% C 0.103 H 293.1°. Best body text is #FFFFFF at 16.87:1 contrast (WCAG AA passes).

Color values

HEX#240F4B
RGBrgb(36, 15, 75)
HSLhsl(261, 67%, 18%)
HSVhsv(261, 80%, 29%)
CMYKcmyk(52%, 80%, 0%, 70.6%)
CIE-LABlab(10.74, 26.55, -33.16)
CIE-LCHlch(10.74, 42.48, 308.68°)
OKLaboklab(24.23% 0.0405 -0.0951)
OKLCHoklch(24.23% 0.103 293.1)
XYZxyz(2.1680, 1.2246, 6.7774)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F4B #364B0F
analogous
#0F184B #240F4B #420F4B
triadic
#240F4B #4B240F #0F4B24
tetradic
#240F4B #4B0F18 #364B0F #0F4B42
square
#240F4B #4B0F18 #364B0F #0F4B42
split-complementary
#240F4B #4B420F #184B0F
monochromatic
#0C051A #0C051A #240F4B #3C197E #5523B1

Accessibility & contrast

On white

16.87
#240F4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240F4B
16.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F4B#FFFFFF#000000##FFFFFF
##240F4B1.0016.871.2416.87
#FFFFFF16.871.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4D
Deuteranopia (green-blind)
#001C4A
Tritanopia (blue-blind)
#181F2C
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #240f4b;
/* rgb */ color: rgb(36, 15, 75);
/* oklch */ color: oklch(24.2% 0.103 293.1);
Tailwind
colors: {
  custom: {
    50: '#644f7e',
    500: '#240f4b',
    950: '#000000',
  },
}
SCSS
$custom: #240f4b;
$custom-light: #644f7e;
$custom-dark: #000000;
JSON
{
  "hex": "#240f4b",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 75
  },
  "hsl": {
    "h": 261,
    "s": 66.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.24231,
    "c": 0.10333,
    "h": 293.1
  },
  "luminance": 0.01225
}

Semantic roles & 50–950 ramp

primary
#240F4B
secondary
#688530
accent
#EA3EAE
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #240F4B

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

Preview Lab → · Contrast checker → · Palette generator →

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