#140638#140638

#140638 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.8% C 0.090 H 287.5°. Best body text is #FFFFFF at 18.87:1 contrast (WCAG AA passes).

Color values

HEX#140638
RGBrgb(20, 6, 56)
HSLhsl(257, 81%, 12%)
HSVhsv(257, 89%, 22%)
CMYKcmyk(64.3%, 89.3%, 0%, 78%)
CIE-LABlab(5.10, 21.02, -28.94)
CIE-LCHlch(5.10, 35.77, 305.99°)
OKLaboklab(18.84% 0.027 -0.0855)
OKLCHoklch(18.84% 0.09 287.5)
XYZxyz(1.0672, 0.5644, 3.7933)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140638 #2A3806
analogous
#061138 #140638 #2D0638
triadic
#140638 #381406 #063814
tetradic
#140638 #380611 #2A3806 #06382D
square
#140638 #380611 #2A3806 #06382D
split-complementary
#140638 #382D06 #113806
monochromatic
#0A031C #0A031C #140638 #280C6F #3B12A7

Accessibility & contrast

On white

18.87
#140638 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140638
18.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140638#FFFFFF#000000##FFFFFF
##1406381.0018.871.1118.87
#FFFFFF18.871.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001239
Deuteranopia (green-blind)
#001037
Tritanopia (blue-blind)
#05141E
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #140638;
/* rgb */ color: rgb(20, 6, 56);
/* oklch */ color: oklch(18.8% 0.090 287.5);
Tailwind
colors: {
  custom: {
    50: '#56486f',
    500: '#140638',
    950: '#000000',
  },
}
SCSS
$custom: #140638;
$custom-light: #56486f;
$custom-dark: #000000;
JSON
{
  "hex": "#140638",
  "rgb": {
    "r": 20,
    "g": 6,
    "b": 56
  },
  "hsl": {
    "h": 256.8,
    "s": 80.645,
    "l": 12.157
  },
  "oklch": {
    "l": 0.1884,
    "c": 0.08967,
    "h": 287.5
  },
  "luminance": 0.00564
}

Semantic roles & 50–950 ramp

primary
#140638
secondary
#607821
accent
#F731C0
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#030007
muted
#78777A

Preview Lab

Preview with #140638

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

Preview Lab → · Contrast checker → · Palette generator →

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