#140A42#140A42

#140A42 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.7% C 0.098 H 281.7°. Best body text is #FFFFFF at 18.23:1 contrast (WCAG AA passes).

Color values

HEX#140A42
RGBrgb(20, 10, 66)
HSLhsl(251, 74%, 15%)
HSVhsv(251, 85%, 26%)
CMYKcmyk(69.7%, 84.8%, 0%, 74.1%)
CIE-LABlab(6.86, 23.46, -33.28)
CIE-LCHlch(6.86, 40.72, 305.18°)
OKLaboklab(20.7% 0.0199 -0.0963)
OKLCHoklch(20.7% 0.098 281.7)
XYZxyz(1.3801, 0.7591, 5.2270)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140A42 #38420A
analogous
#0A1C42 #140A42 #300A42
triadic
#140A42 #42140A #0A4214
tetradic
#140A42 #420A1C #38420A #0A4230
square
#140A42 #420A1C #38420A #0A4230
split-complementary
#140A42 #42300A #1C420A
monochromatic
#08041B #08041B #140A42 #241277 #341AAC

Accessibility & contrast

On white

18.23
#140A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#140A42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140A42
18.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140A42#FFFFFF#000000##FFFFFF
##140A421.0018.231.1518.23
#FFFFFF18.231.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.231.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: #140a42;
/* rgb */ color: rgb(20, 10, 66);
/* oklch */ color: oklch(20.7% 0.098 281.7);
Tailwind
colors: {
  custom: {
    50: '#594a77',
    500: '#140a42',
    950: '#000000',
  },
}
SCSS
$custom: #140a42;
$custom-light: #594a77;
$custom-dark: #000000;
JSON
{
  "hex": "#140a42",
  "rgb": {
    "r": 20,
    "g": 10,
    "b": 66
  },
  "hsl": {
    "h": 250.714,
    "s": 73.684,
    "l": 14.902
  },
  "oklch": {
    "l": 0.207,
    "c": 0.09832,
    "h": 281.7
  },
  "luminance": 0.00759
}

Semantic roles & 50–950 ramp

primary
#140A42
secondary
#707F29
accent
#F037CF
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #140A42

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

Preview Lab → · Contrast checker → · Palette generator →

#140A42 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva