#240B38#240B38

#240B38 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.8% C 0.084 H 306.0°. Best body text is #FFFFFF at 17.80:1 contrast (WCAG AA passes).

Color values

HEX#240B38
RGBrgb(36, 11, 56)
HSLhsl(273, 67%, 13%)
HSVhsv(273, 80%, 22%)
CMYKcmyk(35.7%, 80.4%, 0%, 78%)
CIE-LABlab(8.13, 23.09, -23.94)
CIE-LCHlch(8.13, 33.26, 313.96°)
OKLaboklab(21.82% 0.0493 -0.0679)
OKLCHoklch(21.82% 0.084 306)
XYZxyz(1.5609, 0.8999, 3.8321)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240B38 #1F380B
analogous
#0D0B38 #240B38 #380B35
triadic
#240B38 #38240B #0B3824
tetradic
#240B38 #380D0B #1F380B #0B3538
square
#240B38 #380D0B #1F380B #0B3538
split-complementary
#240B38 #35380B #0B380D
monochromatic
#10051A #10051A #240B38 #45156B #661F9E

Accessibility & contrast

On white

17.80
#240B38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240B38
17.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240B38#FFFFFF#000000##FFFFFF
##240B381.0017.801.1817.80
#FFFFFF17.801.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001739
Deuteranopia (green-blind)
#011837
Tritanopia (blue-blind)
#201520
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #240b38;
/* rgb */ color: rgb(36, 11, 56);
/* oklch */ color: oklch(21.8% 0.084 306.0);
Tailwind
colors: {
  custom: {
    50: '#614c6f',
    500: '#240b38',
    950: '#000000',
  },
}
SCSS
$custom: #240b38;
$custom-light: #614c6f;
$custom-dark: #000000;
JSON
{
  "hex": "#240b38",
  "rgb": {
    "r": 36,
    "g": 11,
    "b": 56
  },
  "hsl": {
    "h": 273.333,
    "s": 67.164,
    "l": 13.137
  },
  "oklch": {
    "l": 0.21819,
    "c": 0.08397,
    "h": 306
  },
  "luminance": 0.009
}

Semantic roles & 50–950 ramp

primary
#240B38
secondary
#4B752A
accent
#EA3E8A
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050107
muted
#79777A

Preview Lab

Preview with #240B38

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

Preview Lab → · Contrast checker → · Palette generator →

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