#240F53#240F53

#240F53 is a dark, moderate violet. Relative luminance 0.013; OKLCH L 25.1% C 0.114 H 289.6°. Best body text is #FFFFFF at 16.56:1 contrast (WCAG AA passes).

Color values

HEX#240F53
RGBrgb(36, 15, 83)
HSLhsl(259, 69%, 19%)
HSVhsv(259, 82%, 33%)
CMYKcmyk(56.6%, 81.9%, 0%, 67.5%)
CIE-LABlab(11.56, 29.09, -37.32)
CIE-LCHlch(11.56, 47.32, 307.94°)
OKLaboklab(25.06% 0.0382 -0.1073)
OKLCHoklch(25.06% 0.114 289.6)
XYZxyz(2.4593, 1.3411, 8.3112)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F53 #3E530F
analogous
#0F1C53 #240F53 #460F53
triadic
#240F53 #53240F #0F5324
tetradic
#240F53 #530F1C #3E530F #0F5346
square
#240F53 #530F1C #3E530F #0F5346
split-complementary
#240F53 #53460F #1C530F
monochromatic
#0B051A #0E061F #240F53 #3A1887 #5122BB

Accessibility & contrast

On white

16.56
#240F53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240F53
16.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F53#FFFFFF#000000##FFFFFF
##240F531.0016.561.2716.56
#FFFFFF16.561.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002055
Deuteranopia (green-blind)
#001D52
Tritanopia (blue-blind)
#132230
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #240f53;
/* rgb */ color: rgb(36, 15, 83);
/* oklch */ color: oklch(25.1% 0.114 289.6);
Tailwind
colors: {
  custom: {
    50: '#655084',
    500: '#240f53',
    950: '#000000',
  },
}
SCSS
$custom: #240f53;
$custom-light: #655084;
$custom-dark: #000000;
JSON
{
  "hex": "#240f53",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 83
  },
  "hsl": {
    "h": 258.529,
    "s": 69.388,
    "l": 19.216
  },
  "oklch": {
    "l": 0.25063,
    "c": 0.11387,
    "h": 289.6
  },
  "luminance": 0.01341
}

Semantic roles & 50–950 ramp

primary
#240F53
secondary
#718D31
accent
#EC3CB6
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #240F53

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

Preview Lab → · Contrast checker → · Palette generator →

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