#240F55#240F55

#240F55 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.116 H 288.8°. Best body text is #FFFFFF at 16.48:1 contrast (WCAG AA passes).

Color values

HEX#240F55
RGBrgb(36, 15, 85)
HSLhsl(258, 70%, 20%)
HSVhsv(258, 82%, 33%)
CMYKcmyk(57.6%, 82.4%, 0%, 66.7%)
CIE-LABlab(11.77, 29.73, -38.34)
CIE-LCHlch(11.77, 48.51, 307.79°)
OKLaboklab(25.28% 0.0376 -0.1102)
OKLCHoklch(25.28% 0.116 288.8)
XYZxyz(2.5376, 1.3725, 8.7238)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F55 #40550F
analogous
#0F1D55 #240F55 #470F55
triadic
#240F55 #55240F #0F5524
tetradic
#240F55 #550F1D #40550F #0F5547
square
#240F55 #550F1D #40550F #0F5547
split-complementary
#240F55 #55470F #1D550F
monochromatic
#0B051A #0E0621 #240F55 #3A1889 #5021BD

Accessibility & contrast

On white

16.48
#240F55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#240F55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240F55
16.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F55#FFFFFF#000000##FFFFFF
##240F551.0016.481.2716.48
#FFFFFF16.481.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002057
Deuteranopia (green-blind)
#001D54
Tritanopia (blue-blind)
#112331
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #240f55;
/* rgb */ color: rgb(36, 15, 85);
/* oklch */ color: oklch(25.3% 0.116 288.8);
Tailwind
colors: {
  custom: {
    50: '#655086',
    500: '#240f55',
    950: '#000000',
  },
}
SCSS
$custom: #240f55;
$custom-light: #655086;
$custom-dark: #000000;
JSON
{
  "hex": "#240f55",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 85
  },
  "hsl": {
    "h": 258,
    "s": 70,
    "l": 19.608
  },
  "oklch": {
    "l": 0.25277,
    "c": 0.11647,
    "h": 288.8
  },
  "luminance": 0.01373
}

Semantic roles & 50–950 ramp

primary
#240F55
secondary
#738F31
accent
#ED3BB7
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #240F55

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

Preview Lab → · Contrast checker → · Palette generator →

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