#240F6A#240F6A

#240F6A is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.6% C 0.143 H 282.3°. Best body text is #FFFFFF at 15.54:1 contrast (WCAG AA passes).

Color values

HEX#240F6A
RGBrgb(36, 15, 106)
HSLhsl(254, 75%, 24%)
HSVhsv(254, 86%, 42%)
CMYKcmyk(66%, 85.8%, 0%, 58.4%)
CIE-LABlab(14.16, 36.34, -48.44)
CIE-LCHlch(14.16, 60.56, 306.88°)
OKLaboklab(27.65% 0.0304 -0.1397)
OKLCHoklch(27.65% 0.143 282.3)
XYZxyz(3.4991, 1.7571, 13.7876)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F6A #556A0F
analogous
#0F276A #240F6A #510F6A
triadic
#240F6A #6A240F #0F6A24
tetradic
#240F6A #6A0F27 #556A0F #0F6A51
square
#240F6A #6A0F27 #556A0F #0F6A51
split-complementary
#240F6A #6A510F #276A0F
monochromatic
#09041B #120734 #240F6A #3617A0 #481ED5

Accessibility & contrast

On white

15.54
#240F6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#240F6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240F6A
15.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F6A#FFFFFF#000000##FFFFFF
##240F6A1.0015.541.3515.54
#FFFFFF15.541.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00276C
Deuteranopia (green-blind)
#002168
Tritanopia (blue-blind)
#002B3D
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #240f6a;
/* rgb */ color: rgb(36, 15, 106);
/* oklch */ color: oklch(27.6% 0.143 282.3);
Tailwind
colors: {
  custom: {
    50: '#6a5196',
    500: '#240f6a',
    950: '#000000',
  },
}
SCSS
$custom: #240f6a;
$custom-light: #6a5196;
$custom-dark: #000000;
JSON
{
  "hex": "#240f6a",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 106
  },
  "hsl": {
    "h": 253.846,
    "s": 75.207,
    "l": 23.725
  },
  "oklch": {
    "l": 0.27647,
    "c": 0.14301,
    "h": 282.3
  },
  "luminance": 0.01757
}

Semantic roles & 50–950 ramp

primary
#240F6A
secondary
#89A232
accent
#F236C6
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020D
muted
#7A787E

Preview Lab

Preview with #240F6A

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

Preview Lab → · Contrast checker → · Palette generator →

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