#240B37#240B37

#240B37 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.7% C 0.083 H 306.8°. Best body text is #FFFFFF at 17.83:1 contrast (WCAG AA passes).

Color values

HEX#240B37
RGBrgb(36, 11, 55)
HSLhsl(274, 67%, 13%)
HSVhsv(274, 80%, 22%)
CMYKcmyk(34.5%, 80%, 0%, 78.4%)
CIE-LABlab(8.04, 22.80, -23.36)
CIE-LCHlch(8.04, 32.64, 314.31°)
OKLaboklab(21.73% 0.0495 -0.0662)
OKLCHoklch(21.73% 0.083 306.8)
XYZxyz(1.5367, 0.8903, 3.7046)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240B37 #1E370B
analogous
#0E0B37 #240B37 #370B34
triadic
#240B37 #37240B #0B3724
tetradic
#240B37 #370E0B #1E370B #0B3437
square
#240B37 #370E0B #1E370B #0B3437
split-complementary
#240B37 #34370B #0B370E
monochromatic
#11051A #11051A #240B37 #45156A #671F9D

Accessibility & contrast

On white

17.83
#240B37 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#240B37 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240B37
17.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240B37#FFFFFF#000000##FFFFFF
##240B371.0017.831.1817.83
#FFFFFF17.831.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001738
Deuteranopia (green-blind)
#021836
Tritanopia (blue-blind)
#21151F
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #240b37;
/* rgb */ color: rgb(36, 11, 55);
/* oklch */ color: oklch(21.7% 0.083 306.8);
Tailwind
colors: {
  custom: {
    50: '#614c6e',
    500: '#240b37',
    950: '#000000',
  },
}
SCSS
$custom: #240b37;
$custom-light: #614c6e;
$custom-dark: #000000;
JSON
{
  "hex": "#240b37",
  "rgb": {
    "r": 36,
    "g": 11,
    "b": 55
  },
  "hsl": {
    "h": 274.091,
    "s": 66.667,
    "l": 12.941
  },
  "oklch": {
    "l": 0.21729,
    "c": 0.08268,
    "h": 306.8
  },
  "luminance": 0.0089
}

Semantic roles & 50–950 ramp

primary
#240B37
secondary
#4A742A
accent
#EA3E88
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050107
muted
#79777A

Preview Lab

Preview with #240B37

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

Preview Lab → · Contrast checker → · Palette generator →

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