#240B30#240B30

#240B30 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.1% C 0.074 H 313.0°. Best body text is #FFFFFF at 18.02:1 contrast (WCAG AA passes).

Color values

HEX#240B30
RGBrgb(36, 11, 48)
HSLhsl(281, 63%, 12%)
HSVhsv(281, 77%, 19%)
CMYKcmyk(25%, 77.1%, 0%, 81.2%)
CIE-LABlab(7.48, 20.80, -19.13)
CIE-LCHlch(7.48, 28.26, 317.39°)
OKLaboklab(21.13% 0.0502 -0.0539)
OKLCHoklch(21.13% 0.074 313)
XYZxyz(1.3806, 0.8279, 2.8828)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240B30 #17300B
analogous
#120B30 #240B30 #300B2A
triadic
#240B30 #30240B #0B3024
tetradic
#240B30 #30120B #17300B #0B2A30
square
#240B30 #30120B #17300B #0B2A30
split-complementary
#240B30 #2A300B #0B3012
monochromatic
#130619 #130619 #240B30 #491662 #6F2294

Accessibility & contrast

On white

18.02
#240B30 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#240B30 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240B30
18.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240B30#FFFFFF#000000##FFFFFF
##240B301.0018.021.1718.02
#FFFFFF18.021.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011531
Deuteranopia (green-blind)
#09172F
Tritanopia (blue-blind)
#23121C
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #240b30;
/* rgb */ color: rgb(36, 11, 48);
/* oklch */ color: oklch(21.1% 0.074 313.0);
Tailwind
colors: {
  custom: {
    50: '#604c68',
    500: '#240b30',
    950: '#000000',
  },
}
SCSS
$custom: #240b30;
$custom-light: #604c68;
$custom-dark: #000000;
JSON
{
  "hex": "#240b30",
  "rgb": {
    "r": 36,
    "g": 11,
    "b": 48
  },
  "hsl": {
    "h": 280.541,
    "s": 62.712,
    "l": 11.569
  },
  "oklch": {
    "l": 0.21132,
    "c": 0.07363,
    "h": 313
  },
  "luminance": 0.00828
}

Semantic roles & 50–950 ramp

primary
#240B30
secondary
#406D2A
accent
#E64277
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050106
muted
#79777A

Preview Lab

Preview with #240B30

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

Preview Lab → · Contrast checker → · Palette generator →

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