#140840#140840

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

Color values

HEX#140840
RGBrgb(20, 8, 64)
HSLhsl(253, 78%, 14%)
HSVhsv(253, 88%, 25%)
CMYKcmyk(68.8%, 87.5%, 0%, 74.9%)
CIE-LABlab(6.26, 23.66, -32.84)
CIE-LCHlch(6.26, 40.48, 305.77°)
OKLaboklab(20.15% 0.0222 -0.0954)
OKLCHoklch(20.15% 0.098 283.1)
XYZxyz(1.3005, 0.6925, 4.9146)
Luminance0.0069 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140840 #344008
analogous
#081840 #140840 #300840
triadic
#140840 #401408 #084014
tetradic
#140840 #400818 #344008 #084030
square
#140840 #400818 #344008 #084030
split-complementary
#140840 #403008 #184008
monochromatic
#08031B #08031B #140840 #250F76 #3616AD

Accessibility & contrast

On white

18.44
#140840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#140840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140840
18.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140840#FFFFFF#000000##FFFFFF
##1408401.0018.441.1418.44
#FFFFFF18.441.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001642
Deuteranopia (green-blind)
#00123F
Tritanopia (blue-blind)
#001824
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #140840;
/* rgb */ color: rgb(20, 8, 64);
/* oklch */ color: oklch(20.1% 0.098 283.1);
Tailwind
colors: {
  custom: {
    50: '#584975',
    500: '#140840',
    950: '#000000',
  },
}
SCSS
$custom: #140840;
$custom-light: #584975;
$custom-dark: #000000;
JSON
{
  "hex": "#140840",
  "rgb": {
    "r": 20,
    "g": 8,
    "b": 64
  },
  "hsl": {
    "h": 252.857,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.20146,
    "c": 0.09795,
    "h": 283.1
  },
  "luminance": 0.00693
}

Semantic roles & 50–950 ramp

primary
#140840
secondary
#6B7E25
accent
#F434CB
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #140840

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

Preview Lab → · Contrast checker → · Palette generator →

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