#240B48#240B48

#240B48 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.4% C 0.104 H 295.8°. Best body text is #FFFFFF at 17.26:1 contrast (WCAG AA passes).

Color values

HEX#240B48
RGBrgb(36, 11, 72)
HSLhsl(265, 73%, 16%)
HSVhsv(265, 85%, 28%)
CMYKcmyk(50%, 84.7%, 0%, 71.8%)
CIE-LABlab(9.66, 27.82, -32.84)
CIE-LCHlch(9.66, 43.04, 310.27°)
OKLaboklab(23.38% 0.0454 -0.0941)
OKLCHoklch(23.38% 0.104 295.8)
XYZxyz(2.0166, 1.0822, 6.2323)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240B48 #2F480B
analogous
#0B1148 #240B48 #430B48
triadic
#240B48 #48240B #0B4824
tetradic
#240B48 #480B11 #2F480B #0B4843
square
#240B48 #480B11 #2F480B #0B4843
split-complementary
#240B48 #48430B #11480B
monochromatic
#0D041B #0D041B #240B48 #3F137D #591BB2

Accessibility & contrast

On white

17.26
#240B48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#240B48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240B48
17.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240B48#FFFFFF#000000##FFFFFF
##240B481.0017.261.2217.26
#FFFFFF17.261.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4A
Deuteranopia (green-blind)
#001A47
Tritanopia (blue-blind)
#1A1C29
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #240b48;
/* rgb */ color: rgb(36, 11, 72);
/* oklch */ color: oklch(23.4% 0.104 295.8);
Tailwind
colors: {
  custom: {
    50: '#634d7c',
    500: '#240b48',
    950: '#000000',
  },
}
SCSS
$custom: #240b48;
$custom-light: #634d7c;
$custom-dark: #000000;
JSON
{
  "hex": "#240b48",
  "rgb": {
    "r": 36,
    "g": 11,
    "b": 72
  },
  "hsl": {
    "h": 264.59,
    "s": 73.494,
    "l": 16.275
  },
  "oklch": {
    "l": 0.23377,
    "c": 0.10447,
    "h": 295.8
  },
  "luminance": 0.01082
}

Semantic roles & 50–950 ramp

primary
#240B48
secondary
#60842A
accent
#F038A5
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060109
muted
#7A777B

Preview Lab

Preview with #240B48

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

Preview Lab → · Contrast checker → · Palette generator →

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