#240347#240347

#240347 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.3% C 0.113 H 298.4°. Best body text is #FFFFFF at 17.81:1 contrast (WCAG AA passes).

Color values

HEX#240347
RGBrgb(36, 3, 71)
HSLhsl(269, 92%, 15%)
HSVhsv(269, 96%, 28%)
CMYKcmyk(49.3%, 95.8%, 0%, 72.2%)
CIE-LABlab(8.09, 31.82, -34.72)
CIE-LCHlch(8.09, 47.09, 312.50°)
OKLaboklab(22.26% 0.0538 -0.0995)
OKLCHoklch(22.26% 0.113 298.4)
XYZxyz(1.8972, 0.8951, 6.0328)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240347 #264703
analogous
#030447 #240347 #460347
triadic
#240347 #472403 #034724
tetradic
#240347 #470304 #264703 #034746
square
#240347 #470304 #264703 #034746
split-complementary
#240347 #474603 #044703
monochromatic
#0F011D #0F011D #240347 #420582 #6008BC

Accessibility & contrast

On white

17.81
#240347 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#240347 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240347
17.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240347#FFFFFF#000000##FFFFFF
##2403471.0017.811.1817.81
#FFFFFF17.811.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001849
Deuteranopia (green-blind)
#001746
Tritanopia (blue-blind)
#1B1727
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #240347;
/* rgb */ color: rgb(36, 3, 71);
/* oklch */ color: oklch(22.3% 0.113 298.4);
Tailwind
colors: {
  custom: {
    50: '#64487b',
    500: '#240347',
    950: '#000000',
  },
}
SCSS
$custom: #240347;
$custom-light: #64487b;
$custom-dark: #000000;
JSON
{
  "hex": "#240347",
  "rgb": {
    "r": 36,
    "g": 3,
    "b": 71
  },
  "hsl": {
    "h": 269.118,
    "s": 91.892,
    "l": 14.51
  },
  "oklch": {
    "l": 0.22256,
    "c": 0.1131,
    "h": 298.4
  },
  "luminance": 0.00895
}

Semantic roles & 50–950 ramp

primary
#240347
secondary
#54881E
accent
#FF2997
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060109
muted
#7A777B

Preview Lab

Preview with #240347

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

Preview Lab → · Contrast checker → · Palette generator →

#240347 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva