#240F54#240F54

#240F54 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.115 H 289.2°. Best body text is #FFFFFF at 16.52:1 contrast (WCAG AA passes).

Color values

HEX#240F54
RGBrgb(36, 15, 84)
HSLhsl(258, 70%, 19%)
HSVhsv(258, 82%, 33%)
CMYKcmyk(57.1%, 82.1%, 0%, 67.1%)
CIE-LABlab(11.67, 29.41, -37.83)
CIE-LCHlch(11.67, 47.92, 307.86°)
OKLaboklab(25.17% 0.0379 -0.1087)
OKLCHoklch(25.17% 0.115 289.2)
XYZxyz(2.4981, 1.3567, 8.5160)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F54 #3F540F
analogous
#0F1D54 #240F54 #470F54
triadic
#240F54 #54240F #0F5424
tetradic
#240F54 #540F1D #3F540F #0F5447
square
#240F54 #540F1D #3F540F #0F5447
split-complementary
#240F54 #54470F #1D540F
monochromatic
#0B051A #0E0620 #240F54 #3A1888 #5122BC

Accessibility & contrast

On white

16.52
#240F54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240F54
16.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F54#FFFFFF#000000##FFFFFF
##240F541.0016.521.2716.52
#FFFFFF16.521.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002056
Deuteranopia (green-blind)
#001D53
Tritanopia (blue-blind)
#122231
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #240f54;
/* rgb */ color: rgb(36, 15, 84);
/* oklch */ color: oklch(25.2% 0.115 289.2);
Tailwind
colors: {
  custom: {
    50: '#655085',
    500: '#240f54',
    950: '#000000',
  },
}
SCSS
$custom: #240f54;
$custom-light: #655085;
$custom-dark: #000000;
JSON
{
  "hex": "#240f54",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 84
  },
  "hsl": {
    "h": 258.261,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.2517,
    "c": 0.11517,
    "h": 289.2
  },
  "luminance": 0.01357
}

Semantic roles & 50–950 ramp

primary
#240F54
secondary
#728E31
accent
#ED3BB7
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #240F54

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

Preview Lab → · Contrast checker → · Palette generator →

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