#240F60#240F60

#240F60 is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.5% C 0.131 H 285.1°. Best body text is #FFFFFF at 16.00:1 contrast (WCAG AA passes).

Color values

HEX#240F60
RGBrgb(36, 15, 96)
HSLhsl(256, 73%, 22%)
HSVhsv(256, 84%, 38%)
CMYKcmyk(62.5%, 84.4%, 0%, 62.4%)
CIE-LABlab(12.99, 33.21, -43.74)
CIE-LCHlch(12.99, 54.92, 307.21°)
OKLaboklab(26.49% 0.034 -0.126)
OKLCHoklch(26.49% 0.131 285.1)
XYZxyz(3.0091, 1.5611, 11.2068)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F60 #4B600F
analogous
#0F2260 #240F60 #4D0F60
triadic
#240F60 #60240F #0F6024
tetradic
#240F60 #600F22 #4B600F #0F604D
square
#240F60 #600F22 #4B600F #0F604D
split-complementary
#240F60 #604D0F #22600F
monochromatic
#0A041A #10072B #240F60 #381795 #4C20CA

Accessibility & contrast

On white

16.00
#240F60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#240F60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240F60
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F60#FFFFFF#000000##FFFFFF
##240F601.0016.001.3116.00
#FFFFFF16.001.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002462
Deuteranopia (green-blind)
#001F5F
Tritanopia (blue-blind)
#032738
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #240f60;
/* rgb */ color: rgb(36, 15, 96);
/* oklch */ color: oklch(26.5% 0.131 285.1);
Tailwind
colors: {
  custom: {
    50: '#68518e',
    500: '#240f60',
    950: '#000000',
  },
}
SCSS
$custom: #240f60;
$custom-light: #68518e;
$custom-dark: #000000;
JSON
{
  "hex": "#240f60",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 96
  },
  "hsl": {
    "h": 255.556,
    "s": 72.973,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26494,
    "c": 0.13054,
    "h": 285.1
  },
  "luminance": 0.01561
}

Semantic roles & 50–950 ramp

primary
#240F60
secondary
#7E9932
accent
#F038C0
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #240F60

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

Preview Lab → · Contrast checker → · Palette generator →

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