#240546#240546

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

Color values

HEX#240546
RGBrgb(36, 5, 70)
HSLhsl(269, 87%, 15%)
HSVhsv(269, 93%, 27%)
CMYKcmyk(48.6%, 92.9%, 0%, 72.5%)
CIE-LABlab(8.36, 30.40, -33.57)
CIE-LCHlch(8.36, 45.29, 312.16°)
OKLaboklab(22.41% 0.0521 -0.0962)
OKLCHoklch(22.41% 0.109 298.4)
XYZxyz(1.8870, 0.9258, 5.8724)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240546 #274605
analogous
#050746 #240546 #450546
triadic
#240546 #462405 #054624
tetradic
#240546 #460507 #274605 #054645
square
#240546 #460507 #274605 #054645
split-complementary
#240546 #464505 #074605
monochromatic
#0F021D #0F021D #240546 #41097F #5F0DB8

Accessibility & contrast

On white

17.72
#240546 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#240546 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240546
17.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240546#FFFFFF#000000##FFFFFF
##2405461.0017.721.1917.72
#FFFFFF17.721.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001848
Deuteranopia (green-blind)
#001845
Tritanopia (blue-blind)
#1B1826
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #240546;
/* rgb */ color: rgb(36, 5, 70);
/* oklch */ color: oklch(22.4% 0.109 298.4);
Tailwind
colors: {
  custom: {
    50: '#644a7a',
    500: '#240546',
    950: '#000000',
  },
}
SCSS
$custom: #240546;
$custom-light: #644a7a;
$custom-dark: #000000;
JSON
{
  "hex": "#240546",
  "rgb": {
    "r": 36,
    "g": 5,
    "b": 70
  },
  "hsl": {
    "h": 268.615,
    "s": 86.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.22409,
    "c": 0.10937,
    "h": 298.4
  },
  "luminance": 0.00926
}

Semantic roles & 50–950 ramp

primary
#240546
secondary
#568621
accent
#FD2B99
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060109
muted
#7A777B

Preview Lab

Preview with #240546

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

Preview Lab → · Contrast checker → · Palette generator →

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