#28062F#28062F

#28062F is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.0% C 0.083 H 320.3°. Best body text is #FFFFFF at 18.14:1 contrast (WCAG AA passes).

Color values

HEX#28062F
RGBrgb(40, 6, 47)
HSLhsl(290, 77%, 10%)
HSVhsv(290, 87%, 18%)
CMYKcmyk(14.9%, 87.2%, 0%, 81.6%)
CIE-LABlab(7.11, 24.50, -18.94)
CIE-LCHlch(7.11, 30.97, 322.29°)
OKLaboklab(20.97% 0.0641 -0.0532)
OKLCHoklch(20.97% 0.083 320.3)
XYZxyz(1.4532, 0.7867, 2.7641)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28062F #0D2F06
analogous
#13062F #28062F #2F0621
triadic
#28062F #2F2806 #062F28
tetradic
#28062F #2F1306 #0D2F06 #06212F
square
#28062F #2F1306 #0D2F06 #06212F
split-complementary
#28062F #212F06 #062F13
monochromatic
#17031B #17031B #28062F #560D65 #84149C

Accessibility & contrast

On white

18.14
#28062F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28062F
18.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28062F#FFFFFF#000000##FFFFFF
##28062F1.0018.141.1618.14
#FFFFFF18.141.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001330
Deuteranopia (green-blind)
#09172E
Tritanopia (blue-blind)
#280E19
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #28062f;
/* rgb */ color: rgb(40, 6, 47);
/* oklch */ color: oklch(21.0% 0.083 320.3);
Tailwind
colors: {
  custom: {
    50: '#644968',
    500: '#28062f',
    950: '#000000',
  },
}
SCSS
$custom: #28062f;
$custom-light: #644968;
$custom-dark: #000000;
JSON
{
  "hex": "#28062f",
  "rgb": {
    "r": 40,
    "g": 6,
    "b": 47
  },
  "hsl": {
    "h": 289.756,
    "s": 77.358,
    "l": 10.392
  },
  "oklch": {
    "l": 0.20973,
    "c": 0.08333,
    "h": 320.3
  },
  "luminance": 0.00787
}

Semantic roles & 50–950 ramp

primary
#28062F
secondary
#2F7021
accent
#F43455
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050106
muted
#7A777A

Preview Lab

Preview with #28062F

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

Preview Lab → · Contrast checker → · Palette generator →

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