#240C51#240C51

#240C51 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.5% C 0.115 H 291.2°. Best body text is #FFFFFF at 16.85:1 contrast (WCAG AA passes).

Color values

HEX#240C51
RGBrgb(36, 12, 81)
HSLhsl(261, 74%, 18%)
HSVhsv(261, 85%, 32%)
CMYKcmyk(55.6%, 85.2%, 0%, 68.2%)
CIE-LABlab(10.79, 30.05, -37.22)
CIE-LCHlch(10.79, 47.84, 308.92°)
OKLaboklab(24.46% 0.0415 -0.1069)
OKLCHoklch(24.46% 0.115 291.2)
XYZxyz(2.3438, 1.2320, 7.8973)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240C51 #39510C
analogous
#0C1651 #240C51 #460C51
triadic
#240C51 #51240C #0C5124
tetradic
#240C51 #510C16 #39510C #0C5146
square
#240C51 #510C16 #39510C #0C5146
split-complementary
#240C51 #51460C #16510C
monochromatic
#0C041B #0C041C #240C51 #3C1486 #531CBC

Accessibility & contrast

On white

16.85
#240C51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#240C51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240C51
16.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240C51#FFFFFF#000000##FFFFFF
##240C511.0016.851.2516.85
#FFFFFF16.851.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E53
Deuteranopia (green-blind)
#001C50
Tritanopia (blue-blind)
#14202E
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #240c51;
/* rgb */ color: rgb(36, 12, 81);
/* oklch */ color: oklch(24.5% 0.115 291.2);
Tailwind
colors: {
  custom: {
    50: '#654e83',
    500: '#240c51',
    950: '#000000',
  },
}
SCSS
$custom: #240c51;
$custom-light: #654e83;
$custom-dark: #000000;
JSON
{
  "hex": "#240c51",
  "rgb": {
    "r": 36,
    "g": 12,
    "b": 81
  },
  "hsl": {
    "h": 260.87,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.2446,
    "c": 0.11469,
    "h": 291.2
  },
  "luminance": 0.01232
}

Semantic roles & 50–950 ramp

primary
#240C51
secondary
#6B8C2C
accent
#F137B0
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #240C51

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

Preview Lab → · Contrast checker → · Palette generator →

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