#240F58#240F58

#240F58 is a dark, vivid violet. Relative luminance 0.014; OKLCH L 25.6% C 0.120 H 287.7°. Best body text is #FFFFFF at 16.35:1 contrast (WCAG AA passes).

Color values

HEX#240F58
RGBrgb(36, 15, 88)
HSLhsl(257, 71%, 20%)
HSVhsv(257, 83%, 35%)
CMYKcmyk(59.1%, 83%, 0%, 65.5%)
CIE-LABlab(12.10, 30.68, -39.84)
CIE-LCHlch(12.10, 50.28, 307.60°)
OKLaboklab(25.6% 0.0367 -0.1146)
OKLCHoklch(25.6% 0.12 287.7)
XYZxyz(2.6593, 1.4212, 9.3648)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F58 #43580F
analogous
#0F1F58 #240F58 #480F58
triadic
#240F58 #58240F #0F5824
tetradic
#240F58 #580F1F #43580F #0F5848
square
#240F58 #580F1F #43580F #0F5848
split-complementary
#240F58 #58480F #1F580F
monochromatic
#0B041A #0F0624 #240F58 #39188C #4F21C1

Accessibility & contrast

On white

16.35
#240F58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#240F58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240F58
16.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F58#FFFFFF#000000##FFFFFF
##240F581.0016.351.2816.35
#FFFFFF16.351.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00215A
Deuteranopia (green-blind)
#001E57
Tritanopia (blue-blind)
#0E2433
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #240f58;
/* rgb */ color: rgb(36, 15, 88);
/* oklch */ color: oklch(25.6% 0.120 287.7);
Tailwind
colors: {
  custom: {
    50: '#665088',
    500: '#240f58',
    950: '#000000',
  },
}
SCSS
$custom: #240f58;
$custom-light: #665088;
$custom-dark: #000000;
JSON
{
  "hex": "#240f58",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 88
  },
  "hsl": {
    "h": 257.26,
    "s": 70.874,
    "l": 20.196
  },
  "oklch": {
    "l": 0.25603,
    "c": 0.12035,
    "h": 287.7
  },
  "luminance": 0.01421
}

Semantic roles & 50–950 ramp

primary
#240F58
secondary
#769231
accent
#EE3ABA
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020B
muted
#7A787C

Preview Lab

Preview with #240F58

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

Preview Lab → · Contrast checker → · Palette generator →

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