#240F46#240F46

#240F46 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.7% C 0.097 H 295.6°. Best body text is #FFFFFF at 17.05:1 contrast (WCAG AA passes).

Color values

HEX#240F46
RGBrgb(36, 15, 70)
HSLhsl(263, 65%, 17%)
HSVhsv(263, 79%, 27%)
CMYKcmyk(48.6%, 78.6%, 0%, 72.5%)
CIE-LABlab(10.25, 24.97, -30.47)
CIE-LCHlch(10.25, 39.40, 309.34°)
OKLaboklab(23.73% 0.0417 -0.0872)
OKLCHoklch(23.73% 0.097 295.6)
XYZxyz(2.0036, 1.1589, 5.9113)
Luminance0.0116 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F46 #31460F
analogous
#0F1646 #240F46 #400F46
triadic
#240F46 #46240F #0F4624
tetradic
#240F46 #460F16 #31460F #0F4640
square
#240F46 #460F16 #31460F #0F4640
split-complementary
#240F46 #46400F #16460F
monochromatic
#0D0519 #0D0519 #240F46 #3E1A78 #5825AB

Accessibility & contrast

On white

17.05
#240F46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#240F46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240F46
17.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F46#FFFFFF#000000##FFFFFF
##240F461.0017.051.2317.05
#FFFFFF17.051.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C48
Deuteranopia (green-blind)
#001B45
Tritanopia (blue-blind)
#1B1D29
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #240f46;
/* rgb */ color: rgb(36, 15, 70);
/* oklch */ color: oklch(23.7% 0.097 295.6);
Tailwind
colors: {
  custom: {
    50: '#634f7a',
    500: '#240f46',
    950: '#000000',
  },
}
SCSS
$custom: #240f46;
$custom-light: #634f7a;
$custom-dark: #000000;
JSON
{
  "hex": "#240f46",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 70
  },
  "hsl": {
    "h": 262.909,
    "s": 64.706,
    "l": 16.667
  },
  "oklch": {
    "l": 0.23734,
    "c": 0.09661,
    "h": 295.6
  },
  "luminance": 0.01159
}

Semantic roles & 50–950 ramp

primary
#240F46
secondary
#628030
accent
#E840A8
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050209
muted
#7A787B

Preview Lab

Preview with #240F46

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

Preview Lab → · Contrast checker → · Palette generator →

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