#281142#281142

#281142 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.2% C 0.089 H 301.6°. Best body text is #FFFFFF at 16.81:1 contrast (WCAG AA passes).

Color values

HEX#281142
RGBrgb(40, 17, 66)
HSLhsl(268, 59%, 16%)
HSVhsv(268, 74%, 26%)
CMYKcmyk(39.4%, 74.2%, 0%, 74.1%)
CIE-LABlab(10.89, 23.48, -26.60)
CIE-LCHlch(10.89, 35.48, 311.44°)
OKLaboklab(24.2% 0.0466 -0.0756)
OKLCHoklch(24.2% 0.089 301.6)
XYZxyz(2.0587, 1.2454, 5.2851)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281142 #2B4211
analogous
#111342 #281142 #411142
triadic
#281142 #422811 #114228
tetradic
#281142 #421113 #2B4211 #114241
square
#281142 #421113 #2B4211 #114241
split-complementary
#281142 #424111 #134211
monochromatic
#0F0618 #0F0618 #281142 #451E73 #632AA3

Accessibility & contrast

On white

16.81
#281142 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#281142 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281142
16.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281142#FFFFFF#000000##FFFFFF
##2811421.0016.811.2516.81
#FFFFFF16.811.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D43
Deuteranopia (green-blind)
#011D41
Tritanopia (blue-blind)
#231C27
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #281142;
/* rgb */ color: rgb(40, 17, 66);
/* oklch */ color: oklch(24.2% 0.089 301.6);
Tailwind
colors: {
  custom: {
    50: '#655077',
    500: '#281142',
    950: '#000000',
  },
}
SCSS
$custom: #281142;
$custom-light: #655077;
$custom-dark: #000000;
JSON
{
  "hex": "#281142",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 66
  },
  "hsl": {
    "h": 268.163,
    "s": 59.036,
    "l": 16.275
  },
  "oklch": {
    "l": 0.24203,
    "c": 0.0888,
    "h": 301.6
  },
  "luminance": 0.01245
}

Semantic roles & 50–950 ramp

primary
#281142
secondary
#5A7C33
accent
#E24699
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #281142

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

Preview Lab → · Contrast checker → · Palette generator →

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