#140746#140746

#140746 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.7% C 0.107 H 281.2°. Best body text is #FFFFFF at 18.28:1 contrast (WCAG AA passes).

Color values

HEX#140746
RGBrgb(20, 7, 70)
HSLhsl(252, 82%, 15%)
HSVhsv(252, 90%, 27%)
CMYKcmyk(71.4%, 90%, 0%, 72.5%)
CIE-LABlab(6.71, 26.68, -36.35)
CIE-LCHlch(6.71, 45.09, 306.27°)
OKLaboklab(20.73% 0.0209 -0.1053)
OKLCHoklch(20.73% 0.107 281.2)
XYZxyz(1.4696, 0.7428, 5.8591)
Luminance0.0074 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140746 #394607
analogous
#071946 #140746 #330746
triadic
#140746 #461407 #074614
tetradic
#140746 #460719 #394607 #074633
square
#140746 #460719 #394607 #074633
split-complementary
#140746 #463307 #194607
monochromatic
#08031C #08031C #140746 #240D7E #3412B5

Accessibility & contrast

On white

18.28
#140746 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#140746 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140746
18.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140746#FFFFFF#000000##FFFFFF
##1407461.0018.281.1518.28
#FFFFFF18.281.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001748
Deuteranopia (green-blind)
#001345
Tritanopia (blue-blind)
#001A27
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #140746;
/* rgb */ color: rgb(20, 7, 70);
/* oklch */ color: oklch(20.7% 0.107 281.2);
Tailwind
colors: {
  custom: {
    50: '#5a497a',
    500: '#140746',
    950: '#000000',
  },
}
SCSS
$custom: #140746;
$custom-light: #5a497a;
$custom-dark: #000000;
JSON
{
  "hex": "#140746",
  "rgb": {
    "r": 20,
    "g": 7,
    "b": 70
  },
  "hsl": {
    "h": 252.381,
    "s": 81.818,
    "l": 15.098
  },
  "oklch": {
    "l": 0.20732,
    "c": 0.10733,
    "h": 281.2
  },
  "luminance": 0.00743
}

Semantic roles & 50–950 ramp

primary
#140746
secondary
#718524
accent
#F830CF
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #140746

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

Preview Lab → · Contrast checker → · Palette generator →

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