#28062E#28062E

#28062E is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 20.9% C 0.082 H 321.3°. Best body text is #FFFFFF at 18.17:1 contrast (WCAG AA passes).

Color values

HEX#28062E
RGBrgb(40, 6, 46)
HSLhsl(291, 77%, 10%)
HSVhsv(291, 87%, 18%)
CMYKcmyk(13%, 87%, 0%, 82%)
CIE-LABlab(7.03, 24.25, -18.31)
CIE-LCHlch(7.03, 30.38, 322.94°)
OKLaboklab(20.89% 0.0642 -0.0514)
OKLCHoklch(20.89% 0.082 321.3)
XYZxyz(1.4333, 0.7787, 2.6590)
Luminance0.0078 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28062E #0C2E06
analogous
#14062E #28062E #2E0620
triadic
#28062E #2E2806 #062E28
tetradic
#28062E #2E1406 #0C2E06 #06202E
square
#28062E #2E1406 #0C2E06 #06202E
split-complementary
#28062E #202E06 #062E14
monochromatic
#18041B #18041B #28062E #570D64 #86149A

Accessibility & contrast

On white

18.17
#28062E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#28062E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28062E
18.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28062E#FFFFFF#000000##FFFFFF
##28062E1.0018.171.1618.17
#FFFFFF18.171.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00132F
Deuteranopia (green-blind)
#0A172D
Tritanopia (blue-blind)
#280D19
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #28062e;
/* rgb */ color: rgb(40, 6, 46);
/* oklch */ color: oklch(20.9% 0.082 321.3);
Tailwind
colors: {
  custom: {
    50: '#644967',
    500: '#28062e',
    950: '#000000',
  },
}
SCSS
$custom: #28062e;
$custom-light: #644967;
$custom-dark: #000000;
JSON
{
  "hex": "#28062e",
  "rgb": {
    "r": 40,
    "g": 6,
    "b": 46
  },
  "hsl": {
    "h": 291,
    "s": 76.923,
    "l": 10.196
  },
  "oklch": {
    "l": 0.20893,
    "c": 0.08225,
    "h": 321.3
  },
  "luminance": 0.00779
}

Semantic roles & 50–950 ramp

primary
#28062E
secondary
#2D6F21
accent
#F33451
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050106
muted
#7A777A

Preview Lab

Preview with #28062E

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

Preview Lab → · Contrast checker → · Palette generator →

#28062E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva