#240E53#240E53

#240E53 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.9% C 0.115 H 289.9°. Best body text is #FFFFFF at 16.63:1 contrast (WCAG AA passes).

Color values

HEX#240E53
RGBrgb(36, 14, 83)
HSLhsl(259, 71%, 19%)
HSVhsv(259, 83%, 33%)
CMYKcmyk(56.6%, 83.1%, 0%, 67.5%)
CIE-LABlab(11.37, 29.63, -37.63)
CIE-LCHlch(11.37, 47.90, 308.22°)
OKLaboklab(24.93% 0.0391 -0.1082)
OKLCHoklch(24.93% 0.115 289.9)
XYZxyz(2.4455, 1.3136, 8.3066)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240E53 #3D530E
analogous
#0E1B53 #240E53 #470E53
triadic
#240E53 #53240E #0E5324
tetradic
#240E53 #530E1B #3D530E #0E5347
square
#240E53 #530E1B #3D530E #0E5347
split-complementary
#240E53 #53470E #1B530E
monochromatic
#0B041A #0D051F #240E53 #3B1787 #5120BC

Accessibility & contrast

On white

16.63
#240E53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#240E53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240E53
16.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240E53#FFFFFF#000000##FFFFFF
##240E531.0016.631.2616.63
#FFFFFF16.631.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F55
Deuteranopia (green-blind)
#001D52
Tritanopia (blue-blind)
#132130
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #240e53;
/* rgb */ color: rgb(36, 14, 83);
/* oklch */ color: oklch(24.9% 0.115 289.9);
Tailwind
colors: {
  custom: {
    50: '#654f84',
    500: '#240e53',
    950: '#000000',
  },
}
SCSS
$custom: #240e53;
$custom-light: #654f84;
$custom-dark: #000000;
JSON
{
  "hex": "#240e53",
  "rgb": {
    "r": 36,
    "g": 14,
    "b": 83
  },
  "hsl": {
    "h": 259.13,
    "s": 71.134,
    "l": 19.02
  },
  "oklch": {
    "l": 0.2493,
    "c": 0.11503,
    "h": 289.9
  },
  "luminance": 0.01314
}

Semantic roles & 50–950 ramp

primary
#240E53
secondary
#6F8D2F
accent
#EE3AB5
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #240E53

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

Preview Lab → · Contrast checker → · Palette generator →

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