#140540#140540

#140540 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.7% C 0.102 H 284.1°. Best body text is #FFFFFF at 18.66:1 contrast (WCAG AA passes).

Color values

HEX#140540
RGBrgb(20, 5, 64)
HSLhsl(255, 86%, 14%)
HSVhsv(255, 92%, 25%)
CMYKcmyk(68.8%, 92.2%, 0%, 74.9%)
CIE-LABlab(5.67, 25.19, -33.80)
CIE-LCHlch(5.67, 42.16, 306.70°)
OKLaboklab(19.65% 0.0249 -0.0988)
OKLCHoklch(19.65% 0.102 284.1)
XYZxyz(1.2679, 0.6273, 4.9038)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140540 #314005
analogous
#051340 #140540 #310540
triadic
#140540 #401405 #054014
tetradic
#140540 #400513 #314005 #054031
square
#140540 #400513 #314005 #054031
split-complementary
#140540 #403105 #134005
monochromatic
#09021C #09021C #140540 #260979 #370EB2

Accessibility & contrast

On white

18.66
#140540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#140540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140540
18.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140540#FFFFFF#000000##FFFFFF
##1405401.0018.661.1318.66
#FFFFFF18.661.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001442
Deuteranopia (green-blind)
#00113F
Tritanopia (blue-blind)
#001723
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #140540;
/* rgb */ color: rgb(20, 5, 64);
/* oklch */ color: oklch(19.7% 0.102 284.1);
Tailwind
colors: {
  custom: {
    50: '#594876',
    500: '#140540',
    950: '#000000',
  },
}
SCSS
$custom: #140540;
$custom-light: #594876;
$custom-dark: #000000;
JSON
{
  "hex": "#140540",
  "rgb": {
    "r": 20,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 255.254,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.1965,
    "c": 0.10188,
    "h": 284.1
  },
  "luminance": 0.00627
}

Semantic roles & 50–950 ramp

primary
#140540
secondary
#688120
accent
#FC2CC7
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040008
muted
#79777B

Preview Lab

Preview with #140540

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

Preview Lab → · Contrast checker → · Palette generator →

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