#240C5F#240C5F

#240C5F is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.0% C 0.132 H 286.0°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#240C5F
RGBrgb(36, 12, 95)
HSLhsl(257, 78%, 21%)
HSVhsv(257, 87%, 37%)
CMYKcmyk(62.1%, 87.4%, 0%, 62.7%)
CIE-LABlab(12.38, 34.35, -44.09)
CIE-LCHlch(12.38, 55.89, 307.92°)
OKLaboklab(26.04% 0.0363 -0.127)
OKLCHoklch(26.04% 0.132 286)
XYZxyz(2.9240, 1.4641, 10.9528)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240C5F #475F0C
analogous
#0C1E5F #240C5F #4D0C5F
triadic
#240C5F #5F240C #0C5F24
tetradic
#240C5F #5F0C1E #475F0C #0C5F4D
square
#240C5F #5F0C1E #475F0C #0C5F4D
split-complementary
#240C5F #5F4D0C #1E5F0C
monochromatic
#0A031B #0F0529 #240C5F #391395 #4D1ACC

Accessibility & contrast

On white

16.24
#240C5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#240C5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240C5F
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240C5F#FFFFFF#000000##FFFFFF
##240C5F1.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002261
Deuteranopia (green-blind)
#001E5E
Tritanopia (blue-blind)
#052536
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #240c5f;
/* rgb */ color: rgb(36, 12, 95);
/* oklch */ color: oklch(26.0% 0.132 286.0);
Tailwind
colors: {
  custom: {
    50: '#684f8d',
    500: '#240c5f',
    950: '#000000',
  },
}
SCSS
$custom: #240c5f;
$custom-light: #684f8d;
$custom-dark: #000000;
JSON
{
  "hex": "#240c5f",
  "rgb": {
    "r": 36,
    "g": 12,
    "b": 95
  },
  "hsl": {
    "h": 257.349,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.26035,
    "c": 0.1321,
    "h": 286
  },
  "luminance": 0.01464
}

Semantic roles & 50–950 ramp

primary
#240C5F
secondary
#7A992D
accent
#F434BC
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #240C5F

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

Preview Lab → · Contrast checker → · Palette generator →

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