#240339#240339

#240339 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.7% C 0.098 H 307.7°. Best body text is #FFFFFF at 18.31:1 contrast (WCAG AA passes).

Color values

HEX#240339
RGBrgb(36, 3, 57)
HSLhsl(277, 90%, 12%)
HSVhsv(277, 95%, 22%)
CMYKcmyk(36.8%, 94.7%, 0%, 77.6%)
CIE-LABlab(6.64, 27.77, -27.07)
CIE-LCHlch(6.64, 38.78, 315.73°)
OKLaboklab(20.75% 0.0599 -0.0775)
OKLCHoklch(20.75% 0.098 307.7)
XYZxyz(1.4985, 0.7356, 3.9332)
Luminance0.0074 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240339 #183903
analogous
#090339 #240339 #390333
triadic
#240339 #392403 #033924
tetradic
#240339 #390903 #183903 #033339
square
#240339 #390903 #183903 #033339
split-complementary
#240339 #333903 #033909
monochromatic
#12021D #12021D #240339 #490673 #6D09AD

Accessibility & contrast

On white

18.31
#240339 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#240339 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240339
18.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240339#FFFFFF#000000##FFFFFF
##2403391.0018.311.1518.31
#FFFFFF18.311.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00143A
Deuteranopia (green-blind)
#001538
Tritanopia (blue-blind)
#20111E
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #240339;
/* rgb */ color: rgb(36, 3, 57);
/* oklch */ color: oklch(20.7% 0.098 307.7);
Tailwind
colors: {
  custom: {
    50: '#624870',
    500: '#240339',
    950: '#000000',
  },
}
SCSS
$custom: #240339;
$custom-light: #624870;
$custom-dark: #000000;
JSON
{
  "hex": "#240339",
  "rgb": {
    "r": 36,
    "g": 3,
    "b": 57
  },
  "hsl": {
    "h": 276.667,
    "s": 90,
    "l": 11.765
  },
  "oklch": {
    "l": 0.20746,
    "c": 0.09794,
    "h": 307.7
  },
  "luminance": 0.00736
}

Semantic roles & 50–950 ramp

primary
#240339
secondary
#417C1C
accent
#FF297C
background
#F6F4F6
surface
#EBE6EC
border
#C6C2C7
text
#050007
muted
#7A777A

Preview Lab

Preview with #240339

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

Preview Lab → · Contrast checker → · Palette generator →

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