#240F39#240F39

#240F39 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.5% C 0.079 H 303.7°. Best body text is #FFFFFF at 17.47:1 contrast (WCAG AA passes).

Color values

HEX#240F39
RGBrgb(36, 15, 57)
HSLhsl(270, 58%, 14%)
HSVhsv(270, 74%, 22%)
CMYKcmyk(36.8%, 73.7%, 0%, 77.6%)
CIE-LABlab(9.09, 20.96, -23.11)
CIE-LCHlch(9.09, 31.20, 312.21°)
OKLaboklab(22.54% 0.0437 -0.0655)
OKLCHoklch(22.54% 0.079 303.7)
XYZxyz(1.6367, 1.0121, 3.9792)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F39 #24390F
analogous
#0F0F39 #240F39 #390F39
triadic
#240F39 #39240F #0F3924
tetradic
#240F39 #390F0F #24390F #0F3939
square
#240F39 #390F0F #24390F #0F3939
split-complementary
#240F39 #39390F #0F390F
monochromatic
#0F0618 #0F0618 #240F39 #431C69 #61299A

Accessibility & contrast

On white

17.47
#240F39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#240F39 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240F39
17.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F39#FFFFFF#000000##FFFFFF
##240F391.0017.471.2017.47
#FFFFFF17.471.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193A
Deuteranopia (green-blind)
#041A38
Tritanopia (blue-blind)
#201822
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #240f39;
/* rgb */ color: rgb(36, 15, 57);
/* oklch */ color: oklch(22.5% 0.079 303.7);
Tailwind
colors: {
  custom: {
    50: '#614e70',
    500: '#240f39',
    950: '#000000',
  },
}
SCSS
$custom: #240f39;
$custom-light: #614e70;
$custom-dark: #000000;
JSON
{
  "hex": "#240f39",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 57
  },
  "hsl": {
    "h": 270,
    "s": 58.333,
    "l": 14.118
  },
  "oklch": {
    "l": 0.22538,
    "c": 0.07875,
    "h": 303.7
  },
  "luminance": 0.01012
}

Semantic roles & 50–950 ramp

primary
#240F39
secondary
#527330
accent
#E24694
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050207
muted
#79787A

Preview Lab

Preview with #240F39

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

Preview Lab → · Contrast checker → · Palette generator →

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