#281228#281228

#281228 is a very dark, muted purple. Relative luminance 0.010; OKLCH L 22.4% C 0.052 H 327.1°. Best body text is #FFFFFF at 17.39:1 contrast (WCAG AA passes).

Color values

HEX#281228
RGBrgb(40, 18, 40)
HSLhsl(300, 38%, 11%)
HSVhsv(300, 55%, 16%)
CMYKcmyk(0%, 55%, 0%, 84.3%)
CIE-LABlab(9.30, 15.66, -10.27)
CIE-LCHlch(9.30, 18.73, 326.74°)
OKLaboklab(22.45% 0.0435 -0.0281)
OKLCHoklch(22.45% 0.052 327.1)
XYZxyz(1.4744, 1.0370, 2.1296)
Luminance0.0104 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281228 #122812
analogous
#1D1228 #281228 #28121D
triadic
#281228 #282812 #122828
tetradic
#281228 #281D12 #122812 #121D28
square
#281228 #281D12 #122812 #121D28
split-complementary
#281228 #1D2812 #12281D
monochromatic
#150915 #150915 #281228 #522552 #7C387C

Accessibility & contrast

On white

17.39
#281228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#281228 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281228
17.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281228#FFFFFF#000000##FFFFFF
##2812281.0017.391.2117.39
#FFFFFF17.391.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#101829
Deuteranopia (green-blind)
#161B27
Tritanopia (blue-blind)
#29141B
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #281228;
/* rgb */ color: rgb(40, 18, 40);
/* oklch */ color: oklch(22.4% 0.052 327.1);
Tailwind
colors: {
  custom: {
    50: '#625062',
    500: '#281228',
    950: '#000000',
  },
}
SCSS
$custom: #281228;
$custom-light: #625062;
$custom-dark: #000000;
JSON
{
  "hex": "#281228",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 40
  },
  "hsl": {
    "h": 300,
    "s": 37.931,
    "l": 11.373
  },
  "oklch": {
    "l": 0.22447,
    "c": 0.05175,
    "h": 327.1
  },
  "luminance": 0.01037
}

Semantic roles & 50–950 ramp

primary
#281228
secondary
#375F37
accent
#CE5A5A
background
#F5F4F5
surface
#EAE7EA
border
#C6C3C6
text
#050205
muted
#797879

Preview Lab

Preview with #281228

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

Preview Lab → · Contrast checker → · Palette generator →

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