#281140#281140

#281140 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.0% C 0.086 H 302.9°. Best body text is #FFFFFF at 16.88:1 contrast (WCAG AA passes).

Color values

HEX#281140
RGBrgb(40, 17, 64)
HSLhsl(269, 58%, 16%)
HSVhsv(269, 73%, 25%)
CMYKcmyk(37.5%, 73.4%, 0%, 74.9%)
CIE-LABlab(10.72, 22.88, -25.45)
CIE-LCHlch(10.72, 34.23, 311.95°)
OKLaboklab(24.03% 0.0468 -0.0723)
OKLCHoklch(24.03% 0.086 302.9)
XYZxyz(2.0007, 1.2222, 4.9800)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281140 #294011
analogous
#111140 #281140 #3F1140
triadic
#281140 #402811 #114028
tetradic
#281140 #401111 #294011 #11403F
square
#281140 #401111 #294011 #11403F
split-complementary
#281140 #403F11 #114011
monochromatic
#0F0618 #0F0618 #281140 #461E70 #642BA1

Accessibility & contrast

On white

16.88
#281140 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#281140 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281140
16.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281140#FFFFFF#000000##FFFFFF
##2811401.0016.881.2416.88
#FFFFFF16.881.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C41
Deuteranopia (green-blind)
#031D3F
Tritanopia (blue-blind)
#231B26
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #281140;
/* rgb */ color: rgb(40, 17, 64);
/* oklch */ color: oklch(24.0% 0.086 302.9);
Tailwind
colors: {
  custom: {
    50: '#645075',
    500: '#281140',
    950: '#000000',
  },
}
SCSS
$custom: #281140;
$custom-light: #645075;
$custom-dark: #000000;
JSON
{
  "hex": "#281140",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 64
  },
  "hsl": {
    "h": 269.362,
    "s": 58.025,
    "l": 15.882
  },
  "oklch": {
    "l": 0.24029,
    "c": 0.08608,
    "h": 302.9
  },
  "luminance": 0.01222
}

Semantic roles & 50–950 ramp

primary
#281140
secondary
#577933
accent
#E14796
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #281140

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

Preview Lab → · Contrast checker → · Palette generator →

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