#280228#280228

#280228 is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.8% C 0.085 H 328.2°. Best body text is #FFFFFF at 18.59:1 contrast (WCAG AA passes).

Color values

HEX#280228
RGBrgb(40, 2, 40)
HSLhsl(300, 90%, 8%)
HSVhsv(300, 95%, 16%)
CMYKcmyk(0%, 95%, 0%, 84.3%)
CIE-LABlab(5.85, 24.76, -15.66)
CIE-LCHlch(5.85, 29.30, 327.70°)
OKLaboklab(19.77% 0.0719 -0.0446)
OKLCHoklch(19.77% 0.085 328.2)
XYZxyz(1.2798, 0.6478, 2.0647)
Luminance0.0065 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#280228 #022802
analogous
#150228 #280228 #280215
triadic
#280228 #282802 #022828
tetradic
#280228 #281502 #022802 #021528
square
#280228 #281502 #022802 #021528
split-complementary
#280228 #152802 #022815
monochromatic
#1D011D #1D011D #280228 #620562 #9D089D

Accessibility & contrast

On white

18.59
#280228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#280228 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #280228
18.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##280228#FFFFFF#000000##FFFFFF
##2802281.0018.591.1318.59
#FFFFFF18.591.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001029
Deuteranopia (green-blind)
#0B1527
Tritanopia (blue-blind)
#2A0714
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #280228;
/* rgb */ color: rgb(40, 2, 40);
/* oklch */ color: oklch(19.8% 0.085 328.2);
Tailwind
colors: {
  custom: {
    50: '#644762',
    500: '#280228',
    950: '#000000',
  },
}
SCSS
$custom: #280228;
$custom-light: #644762;
$custom-dark: #000000;
JSON
{
  "hex": "#280228",
  "rgb": {
    "r": 40,
    "g": 2,
    "b": 40
  },
  "hsl": {
    "h": 300,
    "s": 90.476,
    "l": 8.235
  },
  "oklch": {
    "l": 0.19774,
    "c": 0.08459,
    "h": 328.2
  },
  "luminance": 0.00648
}

Semantic roles & 50–950 ramp

primary
#280228
secondary
#196D19
accent
#FF2929
background
#F6F4F5
surface
#EBE6EA
border
#C6C2C6
text
#050005
muted
#7A7779

Preview Lab

Preview with #280228

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

Preview Lab → · Contrast checker → · Palette generator →

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