#140228#140228

#140228 is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 16.1% C 0.076 H 301.2°. Best body text is #FFFFFF at 19.64:1 contrast (WCAG AA passes).

Color values

HEX#140228
RGBrgb(20, 2, 40)
HSLhsl(268, 90%, 8%)
HSVhsv(268, 95%, 16%)
CMYKcmyk(50%, 95%, 0%, 84.3%)
CIE-LABlab(3.12, 14.95, -20.13)
CIE-LCHlch(3.12, 25.07, 306.59°)
OKLaboklab(16.1% 0.0396 -0.0654)
OKLCHoklch(16.1% 0.076 301.2)
XYZxyz(0.6931, 0.3453, 2.0372)
Luminance0.0034 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140228 #162802
analogous
#020328 #140228 #270228
triadic
#140228 #281402 #022814
tetradic
#140228 #280203 #162802 #022827
square
#140228 #280203 #162802 #022827
split-complementary
#140228 #282702 #032802
monochromatic
#0F011D #0F011D #140228 #310562 #4E089D

Accessibility & contrast

On white

19.64
#140228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140228
19.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140228#FFFFFF#000000##FFFFFF
##1402281.0019.641.0719.64
#FFFFFF19.641.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B29
Deuteranopia (green-blind)
#000B27
Tritanopia (blue-blind)
#0F0A14
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #140228;
/* rgb */ color: rgb(20, 2, 40);
/* oklch */ color: oklch(16.1% 0.076 301.2);
Tailwind
colors: {
  custom: {
    50: '#524762',
    500: '#140228',
    950: '#000000',
  },
}
SCSS
$custom: #140228;
$custom-light: #524762;
$custom-dark: #000000;
JSON
{
  "hex": "#140228",
  "rgb": {
    "r": 20,
    "g": 2,
    "b": 40
  },
  "hsl": {
    "h": 268.421,
    "s": 90.476,
    "l": 8.235
  },
  "oklch": {
    "l": 0.16102,
    "c": 0.07644,
    "h": 301.2
  },
  "luminance": 0.00345
}

Semantic roles & 50–950 ramp

primary
#140228
secondary
#456D19
accent
#FF299A
background
#F4F4F5
surface
#E7E6EA
border
#C3C2C6
text
#020005
muted
#787779

Preview Lab

Preview with #140228

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

Preview Lab → · Contrast checker → · Palette generator →

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