#240F56#240F56

#240F56 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.118 H 288.5°. Best body text is #FFFFFF at 16.43:1 contrast (WCAG AA passes).

Color values

HEX#240F56
RGBrgb(36, 15, 86)
HSLhsl(258, 70%, 20%)
HSVhsv(258, 83%, 34%)
CMYKcmyk(58.1%, 82.6%, 0%, 66.3%)
CIE-LABlab(11.88, 30.04, -38.84)
CIE-LCHlch(11.88, 49.10, 307.72°)
OKLaboklab(25.39% 0.0373 -0.1117)
OKLCHoklch(25.39% 0.118 288.5)
XYZxyz(2.5776, 1.3885, 8.9345)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F56 #41560F
analogous
#0F1E56 #240F56 #470F56
triadic
#240F56 #56240F #0F5624
tetradic
#240F56 #560F1E #41560F #0F5647
square
#240F56 #560F1E #41560F #0F5647
split-complementary
#240F56 #56470F #1E560F
monochromatic
#0B051A #0E0622 #240F56 #3A188A #5021BE

Accessibility & contrast

On white

16.43
#240F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#240F56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240F56
16.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F56#FFFFFF#000000##FFFFFF
##240F561.0016.431.2816.43
#FFFFFF16.431.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002158
Deuteranopia (green-blind)
#001D55
Tritanopia (blue-blind)
#102332
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #240f56;
/* rgb */ color: rgb(36, 15, 86);
/* oklch */ color: oklch(25.4% 0.118 288.5);
Tailwind
colors: {
  custom: {
    50: '#665086',
    500: '#240f56',
    950: '#000000',
  },
}
SCSS
$custom: #240f56;
$custom-light: #665086;
$custom-dark: #000000;
JSON
{
  "hex": "#240f56",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 86
  },
  "hsl": {
    "h": 257.746,
    "s": 70.297,
    "l": 19.804
  },
  "oklch": {
    "l": 0.25385,
    "c": 0.11777,
    "h": 288.5
  },
  "luminance": 0.01389
}

Semantic roles & 50–950 ramp

primary
#240F56
secondary
#749031
accent
#ED3BB8
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #240F56

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

Preview Lab → · Contrast checker → · Palette generator →

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