#240B47#240B47

#240B47 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.3% C 0.103 H 296.3°. Best body text is #FFFFFF at 17.30:1 contrast (WCAG AA passes).

Color values

HEX#240B47
RGBrgb(36, 11, 71)
HSLhsl(265, 73%, 16%)
HSVhsv(265, 85%, 28%)
CMYKcmyk(49.3%, 84.5%, 0%, 72.2%)
CIE-LABlab(9.56, 27.52, -32.31)
CIE-LCHlch(9.56, 42.44, 310.43°)
OKLaboklab(23.27% 0.0457 -0.0925)
OKLCHoklch(23.27% 0.103 296.3)
XYZxyz(1.9843, 1.0693, 6.0619)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240B47 #2E470B
analogous
#0B1047 #240B47 #420B47
triadic
#240B47 #47240B #0B4724
tetradic
#240B47 #470B10 #2E470B #0B4742
square
#240B47 #470B10 #2E470B #0B4742
split-complementary
#240B47 #47420B #10470B
monochromatic
#0D041A #0D041A #240B47 #3F137C #5A1BB1

Accessibility & contrast

On white

17.30
#240B47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240B47
17.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240B47#FFFFFF#000000##FFFFFF
##240B471.0017.301.2117.30
#FFFFFF17.301.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B49
Deuteranopia (green-blind)
#001A46
Tritanopia (blue-blind)
#1A1B28
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #240b47;
/* rgb */ color: rgb(36, 11, 71);
/* oklch */ color: oklch(23.3% 0.103 296.3);
Tailwind
colors: {
  custom: {
    50: '#634d7b',
    500: '#240b47',
    950: '#000000',
  },
}
SCSS
$custom: #240b47;
$custom-light: #634d7b;
$custom-dark: #000000;
JSON
{
  "hex": "#240b47",
  "rgb": {
    "r": 36,
    "g": 11,
    "b": 71
  },
  "hsl": {
    "h": 265,
    "s": 73.171,
    "l": 16.078
  },
  "oklch": {
    "l": 0.23274,
    "c": 0.1032,
    "h": 296.3
  },
  "luminance": 0.01069
}

Semantic roles & 50–950 ramp

primary
#240B47
secondary
#5E832A
accent
#F038A3
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060109
muted
#7A777B

Preview Lab

Preview with #240B47

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

Preview Lab → · Contrast checker → · Palette generator →

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