#240F5E#240F5E

#240F5E is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.3% C 0.128 H 285.7°. Best body text is #FFFFFF at 16.09:1 contrast (WCAG AA passes).

Color values

HEX#240F5E
RGBrgb(36, 15, 94)
HSLhsl(256, 72%, 21%)
HSVhsv(256, 84%, 37%)
CMYKcmyk(61.7%, 84%, 0%, 63.1%)
CIE-LABlab(12.76, 32.58, -42.78)
CIE-LCHlch(12.76, 53.77, 307.29°)
OKLaboklab(26.27% 0.0347 -0.1232)
OKLCHoklch(26.27% 0.128 285.7)
XYZxyz(2.9181, 1.5247, 10.7280)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F5E #495E0F
analogous
#0F225E #240F5E #4C0F5E
triadic
#240F5E #5E240F #0F5E24
tetradic
#240F5E #5E0F22 #495E0F #0F5E4C
square
#240F5E #5E0F22 #495E0F #0F5E4C
split-complementary
#240F5E #5E4C0F #225E0F
monochromatic
#0A041A #100729 #240F5E #381793 #4C20C8

Accessibility & contrast

On white

16.09
#240F5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240F5E
16.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F5E#FFFFFF#000000##FFFFFF
##240F5E1.0016.091.3116.09
#FFFFFF16.091.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002360
Deuteranopia (green-blind)
#001F5D
Tritanopia (blue-blind)
#062636
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #240f5e;
/* rgb */ color: rgb(36, 15, 94);
/* oklch */ color: oklch(26.3% 0.128 285.7);
Tailwind
colors: {
  custom: {
    50: '#67518d',
    500: '#240f5e',
    950: '#000000',
  },
}
SCSS
$custom: #240f5e;
$custom-light: #67518d;
$custom-dark: #000000;
JSON
{
  "hex": "#240f5e",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 94
  },
  "hsl": {
    "h": 255.949,
    "s": 72.477,
    "l": 21.373
  },
  "oklch": {
    "l": 0.26268,
    "c": 0.12801,
    "h": 285.7
  },
  "luminance": 0.01525
}

Semantic roles & 50–950 ramp

primary
#240F5E
secondary
#7C9731
accent
#EF39BF
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #240F5E

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

Preview Lab → · Contrast checker → · Palette generator →

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