#240F64#240F64

#240F64 is a dark, vivid violet. Relative luminance 0.016; OKLCH L 27.0% C 0.136 H 283.9°. Best body text is #FFFFFF at 15.82:1 contrast (WCAG AA passes).

Color values

HEX#240F64
RGBrgb(36, 15, 100)
HSLhsl(255, 74%, 23%)
HSVhsv(255, 85%, 39%)
CMYKcmyk(64%, 85%, 0%, 60.8%)
CIE-LABlab(13.45, 34.47, -45.64)
CIE-LCHlch(13.45, 57.20, 307.06°)
OKLaboklab(26.95% 0.0326 -0.1316)
OKLCHoklch(26.95% 0.136 283.9)
XYZxyz(3.1979, 1.6366, 12.2015)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F64 #4F640F
analogous
#0F2464 #240F64 #4F0F64
triadic
#240F64 #64240F #0F6424
tetradic
#240F64 #640F24 #4F640F #0F644F
square
#240F64 #640F24 #4F640F #0F644F
split-complementary
#240F64 #644F0F #24640F
monochromatic
#0A041B #11072F #240F64 #371799 #4A1FCE

Accessibility & contrast

On white

15.82
#240F64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#240F64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240F64
15.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F64#FFFFFF#000000##FFFFFF
##240F641.0015.821.3315.82
#FFFFFF15.821.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002566
Deuteranopia (green-blind)
#002063
Tritanopia (blue-blind)
#00293A
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #240f64;
/* rgb */ color: rgb(36, 15, 100);
/* oklch */ color: oklch(27.0% 0.136 283.9);
Tailwind
colors: {
  custom: {
    50: '#695191',
    500: '#240f64',
    950: '#000000',
  },
}
SCSS
$custom: #240f64;
$custom-light: #695191;
$custom-dark: #000000;
JSON
{
  "hex": "#240f64",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 100
  },
  "hsl": {
    "h": 254.824,
    "s": 73.913,
    "l": 22.549
  },
  "oklch": {
    "l": 0.2695,
    "c": 0.13556,
    "h": 283.9
  },
  "luminance": 0.01637
}

Semantic roles & 50–950 ramp

primary
#240F64
secondary
#829D32
accent
#F137C3
background
#F6F4F9
surface
#EBE7F1
border
#C6C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #240F64

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

Preview Lab → · Contrast checker → · Palette generator →

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