#140538#140538

#140538 is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.7% C 0.091 H 288.0°. Best body text is #FFFFFF at 18.94:1 contrast (WCAG AA passes).

Color values

HEX#140538
RGBrgb(20, 5, 56)
HSLhsl(258, 84%, 12%)
HSVhsv(258, 91%, 22%)
CMYKcmyk(64.3%, 91.1%, 0%, 78%)
CIE-LABlab(4.90, 21.49, -29.26)
CIE-LCHlch(4.90, 36.30, 306.29°)
OKLaboklab(18.65% 0.0282 -0.0868)
OKLCHoklch(18.65% 0.091 288)
XYZxyz(1.0564, 0.5427, 3.7897)
Luminance0.0054 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140538 #293805
analogous
#051038 #140538 #2E0538
triadic
#140538 #381405 #053814
tetradic
#140538 #380510 #293805 #05382E
square
#140538 #380510 #293805 #05382E
split-complementary
#140538 #382E05 #103805
monochromatic
#0A031C #0A031C #140538 #280A70 #3C0FA8

Accessibility & contrast

On white

18.94
#140538 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#140538 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140538
18.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140538#FFFFFF#000000##FFFFFF
##1405381.0018.941.1118.94
#FFFFFF18.941.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001239
Deuteranopia (green-blind)
#000F37
Tritanopia (blue-blind)
#05131E
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #140538;
/* rgb */ color: rgb(20, 5, 56);
/* oklch */ color: oklch(18.7% 0.091 288.0);
Tailwind
colors: {
  custom: {
    50: '#56486f',
    500: '#140538',
    950: '#000000',
  },
}
SCSS
$custom: #140538;
$custom-light: #56486f;
$custom-dark: #000000;
JSON
{
  "hex": "#140538",
  "rgb": {
    "r": 20,
    "g": 5,
    "b": 56
  },
  "hsl": {
    "h": 257.647,
    "s": 83.607,
    "l": 11.961
  },
  "oklch": {
    "l": 0.18654,
    "c": 0.09123,
    "h": 288
  },
  "luminance": 0.00543
}

Semantic roles & 50–950 ramp

primary
#140538
secondary
#5F7920
accent
#FA2EBE
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#030007
muted
#78777A

Preview Lab

Preview with #140538

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

Preview Lab → · Contrast checker → · Palette generator →

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