#140938#140938

#140938 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.4% C 0.085 H 286.1°. Best body text is #FFFFFF at 18.65:1 contrast (WCAG AA passes).

Color values

HEX#140938
RGBrgb(20, 9, 56)
HSLhsl(254, 72%, 13%)
HSVhsv(254, 84%, 22%)
CMYKcmyk(64.3%, 83.9%, 0%, 78%)
CIE-LABlab(5.69, 19.61, -27.99)
CIE-LCHlch(5.69, 34.18, 305.02°)
OKLaboklab(19.38% 0.0237 -0.0819)
OKLCHoklch(19.38% 0.085 286.1)
XYZxyz(1.0998, 0.6296, 3.8042)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140938 #2D3809
analogous
#091538 #140938 #2C0938
triadic
#140938 #381409 #093814
tetradic
#140938 #380915 #2D3809 #09382C
square
#140938 #380915 #2D3809 #09382C
split-complementary
#140938 #382C09 #153809
monochromatic
#09041A #09041A #140938 #27116D #3A1AA1

Accessibility & contrast

On white

18.65
#140938 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#140938 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140938
18.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140938#FFFFFF#000000##FFFFFF
##1409381.0018.651.1318.65
#FFFFFF18.651.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001439
Deuteranopia (green-blind)
#001137
Tritanopia (blue-blind)
#05161F
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #140938;
/* rgb */ color: rgb(20, 9, 56);
/* oklch */ color: oklch(19.4% 0.085 286.1);
Tailwind
colors: {
  custom: {
    50: '#564a6f',
    500: '#140938',
    950: '#000000',
  },
}
SCSS
$custom: #140938;
$custom-light: #564a6f;
$custom-dark: #000000;
JSON
{
  "hex": "#140938",
  "rgb": {
    "r": 20,
    "g": 9,
    "b": 56
  },
  "hsl": {
    "h": 254.043,
    "s": 72.308,
    "l": 12.745
  },
  "oklch": {
    "l": 0.19379,
    "c": 0.08521,
    "h": 286.1
  },
  "luminance": 0.0063
}

Semantic roles & 50–950 ramp

primary
#140938
secondary
#647627
accent
#EF39C4
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030107
muted
#78777A

Preview Lab

Preview with #140938

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

Preview Lab → · Contrast checker → · Palette generator →

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