#240E50#240E50

#240E50 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.6% C 0.111 H 291.1°. Best body text is #FFFFFF at 16.75:1 contrast (WCAG AA passes).

Color values

HEX#240E50
RGBrgb(36, 14, 80)
HSLhsl(260, 70%, 18%)
HSVhsv(260, 83%, 31%)
CMYKcmyk(55%, 82.5%, 0%, 68.6%)
CIE-LABlab(11.05, 28.69, -36.10)
CIE-LCHlch(11.05, 46.11, 308.48°)
OKLaboklab(24.61% 0.0401 -0.1037)
OKLCHoklch(24.61% 0.111 291.1)
XYZxyz(2.3321, 1.2682, 7.7098)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240E50 #3A500E
analogous
#0E1950 #240E50 #450E50
triadic
#240E50 #50240E #0E5024
tetradic
#240E50 #500E19 #3A500E #0E5045
square
#240E50 #500E19 #3A500E #0E5045
split-complementary
#240E50 #50450E #19500E
monochromatic
#0C051A #0D051C #240E50 #3B1784 #5320B8

Accessibility & contrast

On white

16.75
#240E50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#240E50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240E50
16.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240E50#FFFFFF#000000##FFFFFF
##240E501.0016.751.2516.75
#FFFFFF16.751.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F52
Deuteranopia (green-blind)
#001C4F
Tritanopia (blue-blind)
#15202E
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #240e50;
/* rgb */ color: rgb(36, 14, 80);
/* oklch */ color: oklch(24.6% 0.111 291.1);
Tailwind
colors: {
  custom: {
    50: '#654f82',
    500: '#240e50',
    950: '#000000',
  },
}
SCSS
$custom: #240e50;
$custom-light: #654f82;
$custom-dark: #000000;
JSON
{
  "hex": "#240e50",
  "rgb": {
    "r": 36,
    "g": 14,
    "b": 80
  },
  "hsl": {
    "h": 260,
    "s": 70.213,
    "l": 18.431
  },
  "oklch": {
    "l": 0.2461,
    "c": 0.11115,
    "h": 291.1
  },
  "luminance": 0.01268
}

Semantic roles & 50–950 ramp

primary
#240E50
secondary
#6C8B2F
accent
#ED3BB2
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020A
muted
#7A787C

Preview Lab

Preview with #240E50

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

Preview Lab → · Contrast checker → · Palette generator →

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