#28062C#28062C

#28062C is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 20.7% C 0.080 H 323.4°. Best body text is #FFFFFF at 18.22:1 contrast (WCAG AA passes).

Color values

HEX#28062C
RGBrgb(40, 6, 44)
HSLhsl(294, 76%, 10%)
HSVhsv(294, 86%, 17%)
CMYKcmyk(9.1%, 86.4%, 0%, 82.7%)
CIE-LABlab(6.89, 23.73, -17.04)
CIE-LCHlch(6.89, 29.21, 324.32°)
OKLaboklab(20.74% 0.0643 -0.0478)
OKLCHoklch(20.74% 0.08 323.4)
XYZxyz(1.3948, 0.7633, 2.4562)
Luminance0.0076 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28062C #0A2C06
analogous
#15062C #28062C #2C061D
triadic
#28062C #2C2806 #062C28
tetradic
#28062C #2C1506 #0A2C06 #061D2C
square
#28062C #2C1506 #0A2C06 #061D2C
split-complementary
#28062C #1D2C06 #062C15
monochromatic
#18041B #18041B #28062C #590D62 #8A1598

Accessibility & contrast

On white

18.22
#28062C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#28062C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28062C
18.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28062C#FFFFFF#000000##FFFFFF
##28062C1.0018.221.1518.22
#FFFFFF18.221.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00132D
Deuteranopia (green-blind)
#0C172B
Tritanopia (blue-blind)
#290C18
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #28062c;
/* rgb */ color: rgb(40, 6, 44);
/* oklch */ color: oklch(20.7% 0.080 323.4);
Tailwind
colors: {
  custom: {
    50: '#644965',
    500: '#28062c',
    950: '#000000',
  },
}
SCSS
$custom: #28062c;
$custom-light: #644965;
$custom-dark: #000000;
JSON
{
  "hex": "#28062c",
  "rgb": {
    "r": 40,
    "g": 6,
    "b": 44
  },
  "hsl": {
    "h": 293.684,
    "s": 76,
    "l": 9.804
  },
  "oklch": {
    "l": 0.20735,
    "c": 0.08012,
    "h": 323.4
  },
  "luminance": 0.00763
}

Semantic roles & 50–950 ramp

primary
#28062C
secondary
#296D21
accent
#F33549
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050105
muted
#7A777A

Preview Lab

Preview with #28062C

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

Preview Lab → · Contrast checker → · Palette generator →

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