#140738#140738

#140738 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.0% C 0.088 H 287.1°. Best body text is #FFFFFF at 18.80:1 contrast (WCAG AA passes).

Color values

HEX#140738
RGBrgb(20, 7, 56)
HSLhsl(256, 78%, 12%)
HSVhsv(256, 88%, 22%)
CMYKcmyk(64.3%, 87.5%, 0%, 78%)
CIE-LABlab(5.29, 20.56, -28.63)
CIE-LCHlch(5.29, 35.24, 305.68°)
OKLaboklab(19.02% 0.0259 -0.0843)
OKLCHoklch(19.02% 0.088 287.1)
XYZxyz(1.0781, 0.5861, 3.7969)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140738 #2B3807
analogous
#071338 #140738 #2C0738
triadic
#140738 #381407 #073814
tetradic
#140738 #380713 #2B3807 #07382C
square
#140738 #380713 #2B3807 #07382C
split-complementary
#140738 #382C07 #133807
monochromatic
#0A031B #0A031B #140738 #270E6E #3B15A5

Accessibility & contrast

On white

18.80
#140738 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#140738 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140738
18.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140738#FFFFFF#000000##FFFFFF
##1407381.0018.801.1218.80
#FFFFFF18.801.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001339
Deuteranopia (green-blind)
#001037
Tritanopia (blue-blind)
#05151F
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #140738;
/* rgb */ color: rgb(20, 7, 56);
/* oklch */ color: oklch(19.0% 0.088 287.1);
Tailwind
colors: {
  custom: {
    50: '#56496f',
    500: '#140738',
    950: '#000000',
  },
}
SCSS
$custom: #140738;
$custom-light: #56496f;
$custom-dark: #000000;
JSON
{
  "hex": "#140738",
  "rgb": {
    "r": 20,
    "g": 7,
    "b": 56
  },
  "hsl": {
    "h": 255.918,
    "s": 77.778,
    "l": 12.353
  },
  "oklch": {
    "l": 0.19023,
    "c": 0.08814,
    "h": 287.1
  },
  "luminance": 0.00586
}

Semantic roles & 50–950 ramp

primary
#140738
secondary
#617823
accent
#F434C1
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#030007
muted
#78777A

Preview Lab

Preview with #140738

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

Preview Lab → · Contrast checker → · Palette generator →

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