#140E28#140E28

#140E28 is a very dark, muted violet. Relative luminance 0.006; OKLCH L 18.8% C 0.051 H 291.3°. Best body text is #FFFFFF at 18.70:1 contrast (WCAG AA passes).

Color values

HEX#140E28
RGBrgb(20, 14, 40)
HSLhsl(254, 48%, 11%)
HSVhsv(254, 65%, 16%)
CMYKcmyk(50%, 65%, 0%, 84.3%)
CIE-LABlab(5.56, 9.95, -16.30)
CIE-LCHlch(5.56, 19.10, 301.40°)
OKLaboklab(18.79% 0.0186 -0.0477)
OKLCHoklch(18.79% 0.051 291.3)
XYZxyz(0.8284, 0.6160, 2.0823)
Luminance0.0062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140E28 #22280E
analogous
#0E1528 #140E28 #210E28
triadic
#140E28 #28140E #0E2814
tetradic
#140E28 #280E15 #22280E #0E2821
square
#140E28 #280E15 #22280E #0E2821
split-complementary
#140E28 #28210E #15280E
monochromatic
#0B0817 #0B0817 #140E28 #2B1E55 #412E83

Accessibility & contrast

On white

18.70
#140E28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#140E28 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140E28
18.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140E28#FFFFFF#000000##FFFFFF
##140E281.0018.701.1218.70
#FFFFFF18.701.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041329
Deuteranopia (green-blind)
#051227
Tritanopia (blue-blind)
#0F1319
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #140e28;
/* rgb */ color: rgb(20, 14, 40);
/* oklch */ color: oklch(18.8% 0.051 291.3);
Tailwind
colors: {
  custom: {
    50: '#524d62',
    500: '#140e28',
    950: '#000000',
  },
}
SCSS
$custom: #140e28;
$custom-light: #524d62;
$custom-dark: #000000;
JSON
{
  "hex": "#140e28",
  "rgb": {
    "r": 20,
    "g": 14,
    "b": 40
  },
  "hsl": {
    "h": 253.846,
    "s": 48.148,
    "l": 10.588
  },
  "oklch": {
    "l": 0.18791,
    "c": 0.05119,
    "h": 291.3
  },
  "luminance": 0.00616
}

Semantic roles & 50–950 ramp

primary
#140E28
secondary
#566130
accent
#D850B8
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#020105
muted
#787779

Preview Lab

Preview with #140E28

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

Preview Lab → · Contrast checker → · Palette generator →

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