#140227#140227

#140227 is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 16.0% C 0.075 H 302.2°. Best body text is #FFFFFF at 19.67:1 contrast (WCAG AA passes).

Color values

HEX#140227
RGBrgb(20, 2, 39)
HSLhsl(269, 90%, 8%)
HSVhsv(269, 95%, 15%)
CMYKcmyk(48.7%, 94.9%, 0%, 84.7%)
CIE-LABlab(3.06, 14.52, -19.46)
CIE-LCHlch(3.06, 24.28, 306.73°)
OKLaboklab(15.99% 0.0401 -0.0637)
OKLCHoklch(15.99% 0.075 302.2)
XYZxyz(0.6763, 0.3386, 1.9488)
Luminance0.0034 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140227 #152702
analogous
#020327 #140227 #260227
triadic
#140227 #271402 #022714
tetradic
#140227 #270203 #152702 #022726
square
#140227 #270203 #152702 #022726
split-complementary
#140227 #272602 #032702
monochromatic
#0F011D #0F011D #140227 #320561 #50089B

Accessibility & contrast

On white

19.67
#140227 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#140227 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140227
19.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140227#FFFFFF#000000##FFFFFF
##1402271.0019.671.0719.67
#FFFFFF19.671.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B28
Deuteranopia (green-blind)
#000B26
Tritanopia (blue-blind)
#100A13
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #140227;
/* rgb */ color: rgb(20, 2, 39);
/* oklch */ color: oklch(16.0% 0.075 302.2);
Tailwind
colors: {
  custom: {
    50: '#514761',
    500: '#140227',
    950: '#000000',
  },
}
SCSS
$custom: #140227;
$custom-light: #514761;
$custom-dark: #000000;
JSON
{
  "hex": "#140227",
  "rgb": {
    "r": 20,
    "g": 2,
    "b": 39
  },
  "hsl": {
    "h": 269.189,
    "s": 90.244,
    "l": 8.039
  },
  "oklch": {
    "l": 0.15988,
    "c": 0.07522,
    "h": 302.2
  },
  "luminance": 0.00339
}

Semantic roles & 50–950 ramp

primary
#140227
secondary
#446C18
accent
#FF2997
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#020005
muted
#787779

Preview Lab

Preview with #140227

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

Preview Lab → · Contrast checker → · Palette generator →

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