#140740#140740

#140740 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.0% C 0.099 H 283.4°. Best body text is #FFFFFF at 18.52:1 contrast (WCAG AA passes).

Color values

HEX#140740
RGBrgb(20, 7, 64)
HSLhsl(254, 80%, 14%)
HSVhsv(254, 89%, 25%)
CMYKcmyk(68.8%, 89.1%, 0%, 74.9%)
CIE-LABlab(6.06, 24.17, -33.16)
CIE-LCHlch(6.06, 41.03, 306.09°)
OKLaboklab(19.98% 0.0231 -0.0965)
OKLCHoklch(19.98% 0.099 283.4)
XYZxyz(1.2896, 0.6708, 4.9110)
Luminance0.0067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140740 #334007
analogous
#071740 #140740 #310740
triadic
#140740 #401407 #074014
tetradic
#140740 #400717 #334007 #074031
square
#140740 #400717 #334007 #074031
split-complementary
#140740 #403107 #174007
monochromatic
#09031C #09031C #140740 #250D77 #3613AE

Accessibility & contrast

On white

18.52
#140740 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140740
18.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140740#FFFFFF#000000##FFFFFF
##1407401.0018.521.1318.52
#FFFFFF18.521.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001542
Deuteranopia (green-blind)
#00113F
Tritanopia (blue-blind)
#001823
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #140740;
/* rgb */ color: rgb(20, 7, 64);
/* oklch */ color: oklch(20.0% 0.099 283.4);
Tailwind
colors: {
  custom: {
    50: '#594975',
    500: '#140740',
    950: '#000000',
  },
}
SCSS
$custom: #140740;
$custom-light: #594975;
$custom-dark: #000000;
JSON
{
  "hex": "#140740",
  "rgb": {
    "r": 20,
    "g": 7,
    "b": 64
  },
  "hsl": {
    "h": 253.684,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.19983,
    "c": 0.09923,
    "h": 283.4
  },
  "luminance": 0.00671
}

Semantic roles & 50–950 ramp

primary
#140740
secondary
#6A7F24
accent
#F731CA
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040108
muted
#79777B

Preview Lab

Preview with #140740

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

Preview Lab → · Contrast checker → · Palette generator →

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