#240F37#240F37

#240F37 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.4% C 0.076 H 305.2°. Best body text is #FFFFFF at 17.52:1 contrast (WCAG AA passes).

Color values

HEX#240F37
RGBrgb(36, 15, 55)
HSLhsl(272, 57%, 14%)
HSVhsv(272, 73%, 22%)
CMYKcmyk(34.5%, 72.7%, 0%, 78.4%)
CIE-LABlab(8.93, 20.36, -21.92)
CIE-LCHlch(8.93, 29.92, 312.88°)
OKLaboklab(22.37% 0.0438 -0.062)
OKLCHoklch(22.37% 0.076 305.2)
XYZxyz(1.5878, 0.9926, 3.7216)
Luminance0.0099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F37 #22370F
analogous
#100F37 #240F37 #370F36
triadic
#240F37 #37240F #0F3724
tetradic
#240F37 #37100F #22370F #0F3637
square
#240F37 #37100F #22370F #0F3637
split-complementary
#240F37 #36370F #0F3710
monochromatic
#100718 #100718 #240F37 #431C67 #632997

Accessibility & contrast

On white

17.52
#240F37 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240F37
17.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F37#FFFFFF#000000##FFFFFF
##240F371.0017.521.2017.52
#FFFFFF17.521.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001938
Deuteranopia (green-blind)
#061936
Tritanopia (blue-blind)
#211721
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #240f37;
/* rgb */ color: rgb(36, 15, 55);
/* oklch */ color: oklch(22.4% 0.076 305.2);
Tailwind
colors: {
  custom: {
    50: '#614e6e',
    500: '#240f37',
    950: '#000000',
  },
}
SCSS
$custom: #240f37;
$custom-light: #614e6e;
$custom-dark: #000000;
JSON
{
  "hex": "#240f37",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 55
  },
  "hsl": {
    "h": 271.5,
    "s": 57.143,
    "l": 13.725
  },
  "oklch": {
    "l": 0.22369,
    "c": 0.07595,
    "h": 305.2
  },
  "luminance": 0.00993
}

Semantic roles & 50–950 ramp

primary
#240F37
secondary
#4F7131
accent
#E04790
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050207
muted
#79787A

Preview Lab

Preview with #240F37

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

Preview Lab → · Contrast checker → · Palette generator →

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