#240B45#240B45

#240B45 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.1% C 0.101 H 297.4°. Best body text is #FFFFFF at 17.37:1 contrast (WCAG AA passes).

Color values

HEX#240B45
RGBrgb(36, 11, 69)
HSLhsl(266, 73%, 16%)
HSVhsv(266, 84%, 27%)
CMYKcmyk(47.8%, 84.1%, 0%, 72.9%)
CIE-LABlab(9.35, 26.92, -31.23)
CIE-LCHlch(9.35, 41.23, 310.76°)
OKLaboklab(23.07% 0.0463 -0.0894)
OKLCHoklch(23.07% 0.101 297.4)
XYZxyz(1.9211, 1.0440, 5.7294)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240B45 #2C450B
analogous
#0B0F45 #240B45 #410B45
triadic
#240B45 #45240B #0B4524
tetradic
#240B45 #450B0F #2C450B #0B4541
square
#240B45 #450B0F #2C450B #0B4541
split-complementary
#240B45 #45410B #0F450B
monochromatic
#0E041A #0E041A #240B45 #40137A #5B1CAF

Accessibility & contrast

On white

17.37
#240B45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#240B45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240B45
17.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240B45#FFFFFF#000000##FFFFFF
##240B451.0017.371.2117.37
#FFFFFF17.371.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A47
Deuteranopia (green-blind)
#001944
Tritanopia (blue-blind)
#1B1A27
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #240b45;
/* rgb */ color: rgb(36, 11, 69);
/* oklch */ color: oklch(23.1% 0.101 297.4);
Tailwind
colors: {
  custom: {
    50: '#634d79',
    500: '#240b45',
    950: '#000000',
  },
}
SCSS
$custom: #240b45;
$custom-light: #634d79;
$custom-dark: #000000;
JSON
{
  "hex": "#240b45",
  "rgb": {
    "r": 36,
    "g": 11,
    "b": 69
  },
  "hsl": {
    "h": 265.862,
    "s": 72.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.23069,
    "c": 0.10066,
    "h": 297.4
  },
  "luminance": 0.01044
}

Semantic roles & 50–950 ramp

primary
#240B45
secondary
#5C812A
accent
#EF39A0
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050109
muted
#7A777B

Preview Lab

Preview with #240B45

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

Preview Lab → · Contrast checker → · Palette generator →

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