#240F57#240F57

#240F57 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.5% C 0.119 H 288.1°. Best body text is #FFFFFF at 16.39:1 contrast (WCAG AA passes).

Color values

HEX#240F57
RGBrgb(36, 15, 87)
HSLhsl(258, 71%, 20%)
HSVhsv(258, 83%, 34%)
CMYKcmyk(58.6%, 82.8%, 0%, 65.9%)
CIE-LABlab(11.99, 30.36, -39.34)
CIE-LCHlch(11.99, 49.69, 307.66°)
OKLaboklab(25.49% 0.037 -0.1132)
OKLCHoklch(25.49% 0.119 288.1)
XYZxyz(2.6182, 1.4047, 9.1482)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F57 #42570F
analogous
#0F1E57 #240F57 #480F57
triadic
#240F57 #57240F #0F5724
tetradic
#240F57 #570F1E #42570F #0F5748
square
#240F57 #570F1E #42570F #0F5748
split-complementary
#240F57 #57480F #1E570F
monochromatic
#0B051A #0E0623 #240F57 #3A188B #4F21BF

Accessibility & contrast

On white

16.39
#240F57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240F57
16.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F57#FFFFFF#000000##FFFFFF
##240F571.0016.391.2816.39
#FFFFFF16.391.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002159
Deuteranopia (green-blind)
#001E56
Tritanopia (blue-blind)
#0F2332
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #240f57;
/* rgb */ color: rgb(36, 15, 87);
/* oklch */ color: oklch(25.5% 0.119 288.1);
Tailwind
colors: {
  custom: {
    50: '#665087',
    500: '#240f57',
    950: '#000000',
  },
}
SCSS
$custom: #240f57;
$custom-light: #665087;
$custom-dark: #000000;
JSON
{
  "hex": "#240f57",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 87
  },
  "hsl": {
    "h": 257.5,
    "s": 70.588,
    "l": 20
  },
  "oklch": {
    "l": 0.25494,
    "c": 0.11906,
    "h": 288.1
  },
  "luminance": 0.01405
}

Semantic roles & 50–950 ramp

primary
#240F57
secondary
#759131
accent
#ED3AB9
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020B
muted
#7A787C

Preview Lab

Preview with #240F57

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

Preview Lab → · Contrast checker → · Palette generator →

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