#240C55#240C55

#240C55 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.9% C 0.120 H 289.6°. Best body text is #FFFFFF at 16.68:1 contrast (WCAG AA passes).

Color values

HEX#240C55
RGBrgb(36, 12, 85)
HSLhsl(260, 75%, 19%)
HSVhsv(260, 86%, 33%)
CMYKcmyk(57.6%, 85.9%, 0%, 66.7%)
CIE-LABlab(11.23, 31.28, -39.23)
CIE-LCHlch(11.23, 50.17, 308.57°)
OKLaboklab(24.9% 0.0401 -0.1128)
OKLCHoklch(24.9% 0.12 289.6)
XYZxyz(2.4982, 1.2938, 8.7107)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240C55 #3D550C
analogous
#0C1955 #240C55 #490C55
triadic
#240C55 #55240C #0C5524
tetradic
#240C55 #550C19 #3D550C #0C5549
square
#240C55 #550C19 #3D550C #0C5549
split-complementary
#240C55 #55490C #19550C
monochromatic
#0B041B #0D041F #240C55 #3B148B #511BC0

Accessibility & contrast

On white

16.68
#240C55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240C55
16.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240C55#FFFFFF#000000##FFFFFF
##240C551.0016.681.2616.68
#FFFFFF16.681.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F57
Deuteranopia (green-blind)
#001C54
Tritanopia (blue-blind)
#112131
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #240c55;
/* rgb */ color: rgb(36, 12, 85);
/* oklch */ color: oklch(24.9% 0.120 289.6);
Tailwind
colors: {
  custom: {
    50: '#664e86',
    500: '#240c55',
    950: '#000000',
  },
}
SCSS
$custom: #240c55;
$custom-light: #664e86;
$custom-dark: #000000;
JSON
{
  "hex": "#240c55",
  "rgb": {
    "r": 36,
    "g": 12,
    "b": 85
  },
  "hsl": {
    "h": 259.726,
    "s": 75.258,
    "l": 19.02
  },
  "oklch": {
    "l": 0.249,
    "c": 0.11972,
    "h": 289.6
  },
  "luminance": 0.01294
}

Semantic roles & 50–950 ramp

primary
#240C55
secondary
#6F902D
accent
#F236B4
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #240C55

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

Preview Lab → · Contrast checker → · Palette generator →

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