#240F4E#240F4E

#240F4E is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.5% C 0.107 H 291.7°. Best body text is #FFFFFF at 16.75:1 contrast (WCAG AA passes).

Color values

HEX#240F4E
RGBrgb(36, 15, 78)
HSLhsl(260, 68%, 18%)
HSVhsv(260, 81%, 31%)
CMYKcmyk(53.8%, 80.8%, 0%, 69.4%)
CIE-LABlab(11.04, 27.50, -34.74)
CIE-LCHlch(11.04, 44.31, 308.36°)
OKLaboklab(24.54% 0.0397 -0.0997)
OKLCHoklch(24.54% 0.107 291.7)
XYZxyz(2.2731, 1.2667, 7.3310)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F4E #394E0F
analogous
#0F194E #240F4E #430F4E
triadic
#240F4E #4E240F #0F4E24
tetradic
#240F4E #4E0F19 #394E0F #0F4E43
square
#240F4E #4E0F19 #394E0F #0F4E43
split-complementary
#240F4E #4E430F #194E0F
monochromatic
#0C051A #0C051B #240F4E #3C1981 #5323B5

Accessibility & contrast

On white

16.75
#240F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#240F4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240F4E
16.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F4E#FFFFFF#000000##FFFFFF
##240F4E1.0016.751.2516.75
#FFFFFF16.751.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E50
Deuteranopia (green-blind)
#001C4D
Tritanopia (blue-blind)
#16202D
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #240f4e;
/* rgb */ color: rgb(36, 15, 78);
/* oklch */ color: oklch(24.5% 0.107 291.7);
Tailwind
colors: {
  custom: {
    50: '#644f80',
    500: '#240f4e',
    950: '#000000',
  },
}
SCSS
$custom: #240f4e;
$custom-light: #644f80;
$custom-dark: #000000;
JSON
{
  "hex": "#240f4e",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 78
  },
  "hsl": {
    "h": 260,
    "s": 67.742,
    "l": 18.235
  },
  "oklch": {
    "l": 0.24538,
    "c": 0.10731,
    "h": 291.7
  },
  "luminance": 0.01267
}

Semantic roles & 50–950 ramp

primary
#240F4E
secondary
#6B8831
accent
#EB3DB1
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #240F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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