#240942#240942

#240942 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.5% C 0.099 H 299.7°. Best body text is #FFFFFF at 17.61:1 contrast (WCAG AA passes).

Color values

HEX#240942
RGBrgb(36, 9, 66)
HSLhsl(268, 76%, 15%)
HSVhsv(268, 86%, 26%)
CMYKcmyk(45.5%, 86.4%, 0%, 74.1%)
CIE-LABlab(8.69, 27.08, -30.20)
CIE-LCHlch(8.69, 40.56, 311.87°)
OKLaboklab(22.51% 0.0493 -0.0863)
OKLCHoklch(22.51% 0.099 299.7)
XYZxyz(1.8084, 0.9638, 5.2440)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240942 #274209
analogous
#090B42 #240942 #410942
triadic
#240942 #422409 #094224
tetradic
#240942 #42090B #274209 #094241
square
#240942 #42090B #274209 #094241
split-complementary
#240942 #424109 #0B4209
monochromatic
#0F041B #0F041B #240942 #411078 #5F18AE

Accessibility & contrast

On white

17.61
#240942 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240942
17.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240942#FFFFFF#000000##FFFFFF
##2409421.0017.611.1917.61
#FFFFFF17.611.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001944
Deuteranopia (green-blind)
#001841
Tritanopia (blue-blind)
#1D1825
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #240942;
/* rgb */ color: rgb(36, 9, 66);
/* oklch */ color: oklch(22.5% 0.099 299.7);
Tailwind
colors: {
  custom: {
    50: '#634b77',
    500: '#240942',
    950: '#000000',
  },
}
SCSS
$custom: #240942;
$custom-light: #634b77;
$custom-dark: #000000;
JSON
{
  "hex": "#240942",
  "rgb": {
    "r": 36,
    "g": 9,
    "b": 66
  },
  "hsl": {
    "h": 268.421,
    "s": 76,
    "l": 14.706
  },
  "oklch": {
    "l": 0.22507,
    "c": 0.09942,
    "h": 299.7
  },
  "luminance": 0.00964
}

Semantic roles & 50–950 ramp

primary
#240942
secondary
#568027
accent
#F33599
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050109
muted
#7A777B

Preview Lab

Preview with #240942

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

Preview Lab → · Contrast checker → · Palette generator →

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