#140338#140338

#140338 is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.3% C 0.095 H 288.9°. Best body text is #FFFFFF at 19.09:1 contrast (WCAG AA passes).

Color values

HEX#140338
RGBrgb(20, 3, 56)
HSLhsl(259, 90%, 12%)
HSVhsv(259, 95%, 22%)
CMYKcmyk(64.3%, 94.6%, 0%, 78%)
CIE-LABlab(4.51, 22.41, -29.90)
CIE-LCHlch(4.51, 37.36, 306.85°)
OKLaboklab(18.27% 0.0306 -0.0894)
OKLCHoklch(18.27% 0.095 288.9)
XYZxyz(1.0347, 0.4993, 3.7825)
Luminance0.0050 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140338 #273803
analogous
#030D38 #140338 #2F0338
triadic
#140338 #381403 #033814
tetradic
#140338 #38030D #273803 #03382F
square
#140338 #38030D #273803 #03382F
split-complementary
#140338 #382F03 #0D3803
monochromatic
#0A021D #0A021D #140338 #290672 #3D09AC

Accessibility & contrast

On white

19.09
#140338 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#140338 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140338
19.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140338#FFFFFF#000000##FFFFFF
##1403381.0019.091.1019.09
#FFFFFF19.091.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001139
Deuteranopia (green-blind)
#000E37
Tritanopia (blue-blind)
#05121E
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #140338;
/* rgb */ color: rgb(20, 3, 56);
/* oklch */ color: oklch(18.3% 0.095 288.9);
Tailwind
colors: {
  custom: {
    50: '#56476f',
    500: '#140338',
    950: '#000000',
  },
}
SCSS
$custom: #140338;
$custom-light: #56476f;
$custom-dark: #000000;
JSON
{
  "hex": "#140338",
  "rgb": {
    "r": 20,
    "g": 3,
    "b": 56
  },
  "hsl": {
    "h": 259.245,
    "s": 89.831,
    "l": 11.569
  },
  "oklch": {
    "l": 0.18269,
    "c": 0.0945,
    "h": 288.9
  },
  "luminance": 0.00499
}

Semantic roles & 50–950 ramp

primary
#140338
secondary
#5C7B1C
accent
#FF29BA
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#030007
muted
#78777A

Preview Lab

Preview with #140338

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

Preview Lab → · Contrast checker → · Palette generator →

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