#140F28#140F28

#140F28 is a very dark, muted violet. Relative luminance 0.006; OKLCH L 19.0% C 0.049 H 290.1°. Best body text is #FFFFFF at 18.60:1 contrast (WCAG AA passes).

Color values

HEX#140F28
RGBrgb(20, 15, 40)
HSLhsl(252, 45%, 11%)
HSVhsv(252, 63%, 16%)
CMYKcmyk(50%, 62.5%, 0%, 84.3%)
CIE-LABlab(5.81, 9.45, -15.92)
CIE-LCHlch(5.81, 18.51, 300.69°)
OKLaboklab(19.02% 0.0169 -0.0462)
OKLCHoklch(19.02% 0.049 290.1)
XYZxyz(0.8422, 0.6435, 2.0869)
Luminance0.0064 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140F28 #23280F
analogous
#0F1628 #140F28 #200F28
triadic
#140F28 #28140F #0F2814
tetradic
#140F28 #280F16 #23280F #0F2820
square
#140F28 #280F16 #23280F #0F2820
split-complementary
#140F28 #28200F #16280F
monochromatic
#0B0816 #0B0816 #140F28 #2A2055 #413081

Accessibility & contrast

On white

18.60
#140F28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#140F28 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140F28
18.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140F28#FFFFFF#000000##FFFFFF
##140F281.0018.601.1318.60
#FFFFFF18.601.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061329
Deuteranopia (green-blind)
#061227
Tritanopia (blue-blind)
#0F1419
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #140f28;
/* rgb */ color: rgb(20, 15, 40);
/* oklch */ color: oklch(19.0% 0.049 290.1);
Tailwind
colors: {
  custom: {
    50: '#524d62',
    500: '#140f28',
    950: '#000000',
  },
}
SCSS
$custom: #140f28;
$custom-light: #524d62;
$custom-dark: #000000;
JSON
{
  "hex": "#140f28",
  "rgb": {
    "r": 20,
    "g": 15,
    "b": 40
  },
  "hsl": {
    "h": 252,
    "s": 45.455,
    "l": 10.784
  },
  "oklch": {
    "l": 0.19025,
    "c": 0.04922,
    "h": 290.1
  },
  "luminance": 0.00644
}

Semantic roles & 50–950 ramp

primary
#140F28
secondary
#576132
accent
#D553BB
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#020105
muted
#787779

Preview Lab

Preview with #140F28

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

Preview Lab → · Contrast checker → · Palette generator →

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