#240B56#240B56

#240B56 is a very dark, vivid violet. Relative luminance 0.013; OKLCH L 24.9% C 0.122 H 289.4°. Best body text is #FFFFFF at 16.70:1 contrast (WCAG AA passes).

Color values

HEX#240B56
RGBrgb(36, 11, 86)
HSLhsl(260, 77%, 19%)
HSVhsv(260, 87%, 34%)
CMYKcmyk(58.1%, 87.2%, 0%, 66.3%)
CIE-LABlab(11.18, 32.07, -39.99)
CIE-LCHlch(11.18, 51.27, 308.73°)
OKLaboklab(24.9% 0.0405 -0.115)
OKLCHoklch(24.9% 0.122 289.4)
XYZxyz(2.5265, 1.2862, 8.9174)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240B56 #3D560B
analogous
#0B1856 #240B56 #4A0B56
triadic
#240B56 #56240B #0B5624
tetradic
#240B56 #560B18 #3D560B #0B564A
square
#240B56 #560B18 #3D560B #0B564A
split-complementary
#240B56 #564A0B #18560B
monochromatic
#0B031B #0D0420 #240B56 #3B128C #5119C3

Accessibility & contrast

On white

16.70
#240B56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#240B56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240B56
16.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240B56#FFFFFF#000000##FFFFFF
##240B561.0016.701.2616.70
#FFFFFF16.701.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F58
Deuteranopia (green-blind)
#001C55
Tritanopia (blue-blind)
#102131
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #240b56;
/* rgb */ color: rgb(36, 11, 86);
/* oklch */ color: oklch(24.9% 0.122 289.4);
Tailwind
colors: {
  custom: {
    50: '#664e86',
    500: '#240b56',
    950: '#000000',
  },
}
SCSS
$custom: #240b56;
$custom-light: #664e86;
$custom-dark: #000000;
JSON
{
  "hex": "#240b56",
  "rgb": {
    "r": 36,
    "g": 11,
    "b": 86
  },
  "hsl": {
    "h": 260,
    "s": 77.32,
    "l": 19.02
  },
  "oklch": {
    "l": 0.24897,
    "c": 0.12195,
    "h": 289.4
  },
  "luminance": 0.01286
}

Semantic roles & 50–950 ramp

primary
#240B56
secondary
#6F912B
accent
#F434B4
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #240B56

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

Preview Lab → · Contrast checker → · Palette generator →

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