#240B42#240B42

#240B42 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.8% C 0.097 H 299.1°. Best body text is #FFFFFF at 17.48:1 contrast (WCAG AA passes).

Color values

HEX#240B42
RGBrgb(36, 11, 66)
HSLhsl(267, 71%, 15%)
HSVhsv(267, 83%, 26%)
CMYKcmyk(45.5%, 83.3%, 0%, 74.1%)
CIE-LABlab(9.06, 26.02, -29.60)
CIE-LCHlch(9.06, 39.41, 311.32°)
OKLaboklab(22.77% 0.0472 -0.0846)
OKLCHoklch(22.77% 0.097 299.1)
XYZxyz(1.8303, 1.0077, 5.2513)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240B42 #29420B
analogous
#0B0D42 #240B42 #400B42
triadic
#240B42 #42240B #0B4224
tetradic
#240B42 #420B0D #29420B #0B4240
square
#240B42 #420B0D #29420B #0B4240
split-complementary
#240B42 #42400B #0D420B
monochromatic
#0E041A #0E041A #240B42 #411476 #5D1CAB

Accessibility & contrast

On white

17.48
#240B42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240B42
17.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240B42#FFFFFF#000000##FFFFFF
##240B421.0017.481.2017.48
#FFFFFF17.481.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A44
Deuteranopia (green-blind)
#001941
Tritanopia (blue-blind)
#1D1926
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #240b42;
/* rgb */ color: rgb(36, 11, 66);
/* oklch */ color: oklch(22.8% 0.097 299.1);
Tailwind
colors: {
  custom: {
    50: '#624c77',
    500: '#240b42',
    950: '#000000',
  },
}
SCSS
$custom: #240b42;
$custom-light: #624c77;
$custom-dark: #000000;
JSON
{
  "hex": "#240b42",
  "rgb": {
    "r": 36,
    "g": 11,
    "b": 66
  },
  "hsl": {
    "h": 267.273,
    "s": 71.429,
    "l": 15.098
  },
  "oklch": {
    "l": 0.22767,
    "c": 0.09684,
    "h": 299.1
  },
  "luminance": 0.01008
}

Semantic roles & 50–950 ramp

primary
#240B42
secondary
#587F2A
accent
#EE3A9C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050109
muted
#7A777B

Preview Lab

Preview with #240B42

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

Preview Lab → · Contrast checker → · Palette generator →

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