#140231#140231

#140231 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.2% C 0.088 H 293.9°. Best body text is #FFFFFF at 19.39:1 contrast (WCAG AA passes).

Color values

HEX#140231
RGBrgb(20, 2, 49)
HSLhsl(263, 92%, 10%)
HSVhsv(263, 96%, 19%)
CMYKcmyk(59.2%, 95.9%, 0%, 80.8%)
CIE-LABlab(3.74, 19.29, -25.97)
CIE-LCHlch(3.74, 32.34, 306.60°)
OKLaboklab(17.18% 0.0354 -0.0801)
OKLCHoklch(17.18% 0.088 293.9)
XYZxyz(0.8644, 0.4139, 2.9395)
Luminance0.0041 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140231 #1F3102
analogous
#020731 #140231 #2C0231
triadic
#140231 #311402 #023114
tetradic
#140231 #310207 #1F3102 #02312C
square
#140231 #310207 #1F3102 #02312C
split-complementary
#140231 #312C02 #073102
monochromatic
#0C011D #0C011D #140231 #2C046C #4407A7

Accessibility & contrast

On white

19.39
#140231 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#140231 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140231
19.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140231#FFFFFF#000000##FFFFFF
##1402311.0019.391.0819.39
#FFFFFF19.391.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E32
Deuteranopia (green-blind)
#000C30
Tritanopia (blue-blind)
#0B0E19
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #140231;
/* rgb */ color: rgb(20, 2, 49);
/* oklch */ color: oklch(17.2% 0.088 293.9);
Tailwind
colors: {
  custom: {
    50: '#544769',
    500: '#140231',
    950: '#000000',
  },
}
SCSS
$custom: #140231;
$custom-light: #544769;
$custom-dark: #000000;
JSON
{
  "hex": "#140231",
  "rgb": {
    "r": 20,
    "g": 2,
    "b": 49
  },
  "hsl": {
    "h": 262.979,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.17181,
    "c": 0.08756,
    "h": 293.9
  },
  "luminance": 0.00414
}

Semantic roles & 50–950 ramp

primary
#140231
secondary
#527519
accent
#FF29AD
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#030006
muted
#78777A

Preview Lab

Preview with #140231

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

Preview Lab → · Contrast checker → · Palette generator →

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