#140942#140942

#140942 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.5% C 0.100 H 282.0°. Best body text is #FFFFFF at 18.30:1 contrast (WCAG AA passes).

Color values

HEX#140942
RGBrgb(20, 9, 66)
HSLhsl(252, 76%, 15%)
HSVhsv(252, 86%, 26%)
CMYKcmyk(69.7%, 86.4%, 0%, 74.1%)
CIE-LABlab(6.66, 23.99, -33.60)
CIE-LCHlch(6.66, 41.29, 305.52°)
OKLaboklab(20.55% 0.0207 -0.0973)
OKLCHoklch(20.55% 0.1 282)
XYZxyz(1.3692, 0.7373, 5.2234)
Luminance0.0074 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140942 #374209
analogous
#091B42 #140942 #310942
triadic
#140942 #421409 #094214
tetradic
#140942 #42091B #374209 #094231
square
#140942 #42091B #374209 #094231
split-complementary
#140942 #423109 #1B4209
monochromatic
#08041B #08041B #140942 #241078 #3518AE

Accessibility & contrast

On white

18.30
#140942 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140942
18.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140942#FFFFFF#000000##FFFFFF
##1409421.0018.301.1518.30
#FFFFFF18.301.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001744
Deuteranopia (green-blind)
#001341
Tritanopia (blue-blind)
#001A25
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #140942;
/* rgb */ color: rgb(20, 9, 66);
/* oklch */ color: oklch(20.5% 0.100 282.0);
Tailwind
colors: {
  custom: {
    50: '#594a77',
    500: '#140942',
    950: '#000000',
  },
}
SCSS
$custom: #140942;
$custom-light: #594a77;
$custom-dark: #000000;
JSON
{
  "hex": "#140942",
  "rgb": {
    "r": 20,
    "g": 9,
    "b": 66
  },
  "hsl": {
    "h": 251.579,
    "s": 76,
    "l": 14.706
  },
  "oklch": {
    "l": 0.20546,
    "c": 0.09951,
    "h": 282
  },
  "luminance": 0.00737
}

Semantic roles & 50–950 ramp

primary
#140942
secondary
#6F8027
accent
#F335CE
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #140942

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

Preview Lab → · Contrast checker → · Palette generator →

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