#240B43#240B43

#240B43 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.9% C 0.098 H 298.5°. Best body text is #FFFFFF at 17.44:1 contrast (WCAG AA passes).

Color values

HEX#240B43
RGBrgb(36, 11, 67)
HSLhsl(267, 72%, 15%)
HSVhsv(267, 84%, 26%)
CMYKcmyk(46.3%, 83.6%, 0%, 73.7%)
CIE-LABlab(9.15, 26.32, -30.15)
CIE-LCHlch(9.15, 40.02, 311.12°)
OKLaboklab(22.87% 0.0469 -0.0862)
OKLCHoklch(22.87% 0.098 298.5)
XYZxyz(1.8601, 1.0196, 5.4079)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240B43 #2A430B
analogous
#0B0E43 #240B43 #400B43
triadic
#240B43 #43240B #0B4324
tetradic
#240B43 #430B0E #2A430B #0B4340
square
#240B43 #430B0E #2A430B #0B4340
split-complementary
#240B43 #43400B #0E430B
monochromatic
#0E041A #0E041A #240B43 #401478 #5C1CAC

Accessibility & contrast

On white

17.44
#240B43 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240B43
17.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240B43#FFFFFF#000000##FFFFFF
##240B431.0017.441.2017.44
#FFFFFF17.441.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A45
Deuteranopia (green-blind)
#001942
Tritanopia (blue-blind)
#1C1926
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #240b43;
/* rgb */ color: rgb(36, 11, 67);
/* oklch */ color: oklch(22.9% 0.098 298.5);
Tailwind
colors: {
  custom: {
    50: '#634d78',
    500: '#240b43',
    950: '#000000',
  },
}
SCSS
$custom: #240b43;
$custom-light: #634d78;
$custom-dark: #000000;
JSON
{
  "hex": "#240b43",
  "rgb": {
    "r": 36,
    "g": 11,
    "b": 67
  },
  "hsl": {
    "h": 266.786,
    "s": 71.795,
    "l": 15.294
  },
  "oklch": {
    "l": 0.22867,
    "c": 0.09812,
    "h": 298.5
  },
  "luminance": 0.0102
}

Semantic roles & 50–950 ramp

primary
#240B43
secondary
#59802A
accent
#EF399E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050109
muted
#7A777B

Preview Lab

Preview with #240B43

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

Preview Lab → · Contrast checker → · Palette generator →

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