#28022F#28022F

#28022F is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.4% C 0.091 H 321.0°. Best body text is #FFFFFF at 18.42:1 contrast (WCAG AA passes).

Color values

HEX#28022F
RGBrgb(40, 2, 47)
HSLhsl(291, 92%, 10%)
HSVhsv(291, 96%, 18%)
CMYKcmyk(14.9%, 95.7%, 0%, 81.6%)
CIE-LABlab(6.32, 26.64, -20.19)
CIE-LCHlch(6.32, 33.43, 322.84°)
OKLaboklab(20.35% 0.0709 -0.0573)
OKLCHoklch(20.35% 0.091 321)
XYZxyz(1.4098, 0.6998, 2.7496)
Luminance0.0070 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28022F #092F02
analogous
#12022F #28022F #2F0220
triadic
#28022F #2F2802 #022F28
tetradic
#28022F #2F1202 #092F02 #02202F
square
#28022F #2F1202 #092F02 #02202F
split-complementary
#28022F #202F02 #022F12
monochromatic
#19011D #19011D #28022F #5A046A #8C07A4

Accessibility & contrast

On white

18.42
#28022F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#28022F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28022F
18.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28022F#FFFFFF#000000##FFFFFF
##28022F1.0018.421.1418.42
#FFFFFF18.421.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001130
Deuteranopia (green-blind)
#06152E
Tritanopia (blue-blind)
#280A18
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #28022f;
/* rgb */ color: rgb(40, 2, 47);
/* oklch */ color: oklch(20.4% 0.091 321.0);
Tailwind
colors: {
  custom: {
    50: '#644768',
    500: '#28022f',
    950: '#000000',
  },
}
SCSS
$custom: #28022f;
$custom-light: #644768;
$custom-dark: #000000;
JSON
{
  "hex": "#28022f",
  "rgb": {
    "r": 40,
    "g": 2,
    "b": 47
  },
  "hsl": {
    "h": 290.667,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.20351,
    "c": 0.09117,
    "h": 321
  },
  "luminance": 0.007
}

Semantic roles & 50–950 ramp

primary
#28022F
secondary
#277419
accent
#FF294A
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#060006
muted
#7A777A

Preview Lab

Preview with #28022F

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

Preview Lab → · Contrast checker → · Palette generator →

#28022F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva