#240F68#240F68

#240F68 is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.4% C 0.141 H 282.8°. Best body text is #FFFFFF at 15.63:1 contrast (WCAG AA passes).

Color values

HEX#240F68
RGBrgb(36, 15, 104)
HSLhsl(254, 75%, 23%)
HSVhsv(254, 86%, 41%)
CMYKcmyk(65.4%, 85.6%, 0%, 59.2%)
CIE-LABlab(13.92, 35.72, -47.51)
CIE-LCHlch(13.92, 59.44, 306.94°)
OKLaboklab(27.41% 0.0312 -0.137)
OKLCHoklch(27.41% 0.141 282.8)
XYZxyz(3.3963, 1.7160, 13.2463)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F68 #53680F
analogous
#0F2668 #240F68 #500F68
triadic
#240F68 #68240F #0F6824
tetradic
#240F68 #680F26 #53680F #0F6850
square
#240F68 #680F26 #53680F #0F6850
split-complementary
#240F68 #68500F #26680F
monochromatic
#09041B #110733 #240F68 #37179D #491ED3

Accessibility & contrast

On white

15.63
#240F68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#240F68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240F68
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F68#FFFFFF#000000##FFFFFF
##240F681.0015.631.3415.63
#FFFFFF15.631.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00266A
Deuteranopia (green-blind)
#002066
Tritanopia (blue-blind)
#002A3C
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #240f68;
/* rgb */ color: rgb(36, 15, 104);
/* oklch */ color: oklch(27.4% 0.141 282.8);
Tailwind
colors: {
  custom: {
    50: '#695194',
    500: '#240f68',
    950: '#000000',
  },
}
SCSS
$custom: #240f68;
$custom-light: #695194;
$custom-dark: #000000;
JSON
{
  "hex": "#240f68",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 104
  },
  "hsl": {
    "h": 254.157,
    "s": 74.79,
    "l": 23.333
  },
  "oklch": {
    "l": 0.27413,
    "c": 0.14054,
    "h": 282.8
  },
  "luminance": 0.01716
}

Semantic roles & 50–950 ramp

primary
#240F68
secondary
#87A132
accent
#F136C5
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020D
muted
#7A787E

Preview Lab

Preview with #240F68

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

Preview Lab → · Contrast checker → · Palette generator →

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