#240B46#240B46

#240B46 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.2% C 0.102 H 296.8°. Best body text is #FFFFFF at 17.34:1 contrast (WCAG AA passes).

Color values

HEX#240B46
RGBrgb(36, 11, 70)
HSLhsl(265, 73%, 16%)
HSVhsv(265, 84%, 27%)
CMYKcmyk(48.6%, 84.3%, 0%, 72.5%)
CIE-LABlab(9.45, 27.22, -31.77)
CIE-LCHlch(9.45, 41.84, 310.59°)
OKLaboklab(23.17% 0.046 -0.0909)
OKLCHoklch(23.17% 0.102 296.8)
XYZxyz(1.9524, 1.0566, 5.8942)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240B46 #2D460B
analogous
#0B0F46 #240B46 #410B46
triadic
#240B46 #46240B #0B4624
tetradic
#240B46 #460B0F #2D460B #0B4641
square
#240B46 #460B0F #2D460B #0B4641
split-complementary
#240B46 #46410B #0F460B
monochromatic
#0E041A #0E041A #240B46 #3F137B #5A1CB0

Accessibility & contrast

On white

17.34
#240B46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240B46
17.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240B46#FFFFFF#000000##FFFFFF
##240B461.0017.341.2117.34
#FFFFFF17.341.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #240b46;
/* rgb */ color: rgb(36, 11, 70);
/* oklch */ color: oklch(23.2% 0.102 296.8);
Tailwind
colors: {
  custom: {
    50: '#634d7a',
    500: '#240b46',
    950: '#000000',
  },
}
SCSS
$custom: #240b46;
$custom-light: #634d7a;
$custom-dark: #000000;
JSON
{
  "hex": "#240b46",
  "rgb": {
    "r": 36,
    "g": 11,
    "b": 70
  },
  "hsl": {
    "h": 265.424,
    "s": 72.84,
    "l": 15.882
  },
  "oklch": {
    "l": 0.23171,
    "c": 0.10193,
    "h": 296.8
  },
  "luminance": 0.01057
}

Semantic roles & 50–950 ramp

primary
#240B46
secondary
#5D822A
accent
#F038A2
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #240B46

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

Preview Lab → · Contrast checker → · Palette generator →

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