#240F41#240F41

#240F41 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.3% C 0.090 H 298.4°. Best body text is #FFFFFF at 17.22:1 contrast (WCAG AA passes).

Color values

HEX#240F41
RGBrgb(36, 15, 65)
HSLhsl(265, 63%, 16%)
HSVhsv(265, 77%, 25%)
CMYKcmyk(44.6%, 76.9%, 0%, 74.5%)
CIE-LABlab(9.78, 23.41, -27.71)
CIE-LCHlch(9.78, 36.27, 310.20°)
OKLaboklab(23.26% 0.0427 -0.079)
OKLCHoklch(23.26% 0.09 298.4)
XYZxyz(1.8523, 1.0983, 5.1144)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F41 #2C410F
analogous
#0F1341 #240F41 #3D0F41
triadic
#240F41 #41240F #0F4124
tetradic
#240F41 #410F13 #2C410F #0F413D
square
#240F41 #410F13 #2C410F #0F413D
split-complementary
#240F41 #413D0F #13410F
monochromatic
#0E0619 #0E0619 #240F41 #401A73 #5B26A4

Accessibility & contrast

On white

17.22
#240F41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#240F41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240F41
17.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F41#FFFFFF#000000##FFFFFF
##240F411.0017.221.2217.22
#FFFFFF17.221.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B43
Deuteranopia (green-blind)
#001B40
Tritanopia (blue-blind)
#1D1B26
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #240f41;
/* rgb */ color: rgb(36, 15, 65);
/* oklch */ color: oklch(23.3% 0.090 298.4);
Tailwind
colors: {
  custom: {
    50: '#624f76',
    500: '#240f41',
    950: '#000000',
  },
}
SCSS
$custom: #240f41;
$custom-light: #624f76;
$custom-dark: #000000;
JSON
{
  "hex": "#240f41",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 65
  },
  "hsl": {
    "h": 265.2,
    "s": 62.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.23256,
    "c": 0.0898,
    "h": 298.4
  },
  "luminance": 0.01098
}

Semantic roles & 50–950 ramp

primary
#240F41
secondary
#5C7B30
accent
#E642A1
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050208
muted
#79787B

Preview Lab

Preview with #240F41

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

Preview Lab → · Contrast checker → · Palette generator →

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