#240346#240346

#240346 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.1% C 0.112 H 299.0°. Best body text is #FFFFFF at 17.85:1 contrast (WCAG AA passes).

Color values

HEX#240346
RGBrgb(36, 3, 70)
HSLhsl(270, 92%, 14%)
HSVhsv(270, 96%, 27%)
CMYKcmyk(48.6%, 95.7%, 0%, 72.5%)
CIE-LABlab(7.97, 31.55, -34.20)
CIE-LCHlch(7.97, 46.53, 312.68°)
OKLaboklab(22.14% 0.0543 -0.098)
OKLCHoklch(22.14% 0.112 299)
XYZxyz(1.8653, 0.8824, 5.8652)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240346 #254603
analogous
#030446 #240346 #460346
triadic
#240346 #462403 #034624
tetradic
#240346 #460304 #254603 #034646
square
#240346 #460304 #254603 #034646
split-complementary
#240346 #464603 #044603
monochromatic
#0F011D #0F011D #240346 #420681 #6008BB

Accessibility & contrast

On white

17.85
#240346 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240346
17.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240346#FFFFFF#000000##FFFFFF
##2403461.0017.851.1817.85
#FFFFFF17.851.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001748
Deuteranopia (green-blind)
#001745
Tritanopia (blue-blind)
#1B1726
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #240346;
/* rgb */ color: rgb(36, 3, 70);
/* oklch */ color: oklch(22.1% 0.112 299.0);
Tailwind
colors: {
  custom: {
    50: '#64487a',
    500: '#240346',
    950: '#000000',
  },
}
SCSS
$custom: #240346;
$custom-light: #64487a;
$custom-dark: #000000;
JSON
{
  "hex": "#240346",
  "rgb": {
    "r": 36,
    "g": 3,
    "b": 70
  },
  "hsl": {
    "h": 269.552,
    "s": 91.781,
    "l": 14.314
  },
  "oklch": {
    "l": 0.22144,
    "c": 0.11201,
    "h": 299
  },
  "luminance": 0.00882
}

Semantic roles & 50–950 ramp

primary
#240346
secondary
#53871D
accent
#FF2995
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060109
muted
#7A777B

Preview Lab

Preview with #240346

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

Preview Lab → · Contrast checker → · Palette generator →

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