#240739#240739

#240739 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.3% C 0.091 H 306.5°. Best body text is #FFFFFF at 18.04:1 contrast (WCAG AA passes).

Color values

HEX#240739
RGBrgb(36, 7, 57)
HSLhsl(275, 78%, 13%)
HSVhsv(275, 88%, 22%)
CMYKcmyk(36.8%, 87.7%, 0%, 77.6%)
CIE-LABlab(7.43, 25.59, -25.80)
CIE-LCHlch(7.43, 36.34, 314.76°)
OKLaboklab(21.34% 0.0543 -0.0734)
OKLCHoklch(21.34% 0.091 306.5)
XYZxyz(1.5419, 0.8224, 3.9476)
Luminance0.0082 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240739 #1C3907
analogous
#0B0739 #240739 #390735
triadic
#240739 #392407 #073924
tetradic
#240739 #390B07 #1C3907 #073539
square
#240739 #390B07 #1C3907 #073539
split-complementary
#240739 #353907 #07390B
monochromatic
#11031B #11031B #240739 #460E70 #6914A6

Accessibility & contrast

On white

18.04
#240739 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#240739 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240739
18.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240739#FFFFFF#000000##FFFFFF
##2407391.0018.041.1618.04
#FFFFFF18.041.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00153A
Deuteranopia (green-blind)
#001738
Tritanopia (blue-blind)
#20131F
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #240739;
/* rgb */ color: rgb(36, 7, 57);
/* oklch */ color: oklch(21.3% 0.091 306.5);
Tailwind
colors: {
  custom: {
    50: '#624a70',
    500: '#240739',
    950: '#000000',
  },
}
SCSS
$custom: #240739;
$custom-light: #624a70;
$custom-dark: #000000;
JSON
{
  "hex": "#240739",
  "rgb": {
    "r": 36,
    "g": 7,
    "b": 57
  },
  "hsl": {
    "h": 274.8,
    "s": 78.125,
    "l": 12.549
  },
  "oklch": {
    "l": 0.21342,
    "c": 0.09135,
    "h": 306.5
  },
  "luminance": 0.00822
}

Semantic roles & 50–950 ramp

primary
#240739
secondary
#477923
accent
#F53384
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050107
muted
#79777A

Preview Lab

Preview with #240739

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

Preview Lab → · Contrast checker → · Palette generator →

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