#2B0728#2B0728

#2B0728 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.2% C 0.076 H 331.4°. Best body text is #FFFFFF at 18.04:1 contrast (WCAG AA passes).

Color values

HEX#2B0728
RGBrgb(43, 7, 40)
HSLhsl(305, 72%, 10%)
HSVhsv(305, 84%, 17%)
CMYKcmyk(0%, 83.7%, 7%, 83.1%)
CIE-LABlab(7.40, 23.31, -13.20)
CIE-LCHlch(7.40, 26.78, 330.48°)
OKLaboklab(21.15% 0.0668 -0.0363)
OKLCHoklch(21.15% 0.076 331.4)
XYZxyz(1.4552, 0.8189, 2.0885)
Luminance0.0082 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0728 #072B0A
analogous
#1C072B #2B0728 #2B0716
triadic
#2B0728 #282B07 #07282B
tetradic
#2B0728 #2B1C07 #072B0A #07162B
square
#2B0728 #2B1C07 #072B0A #07162B
split-complementary
#2B0728 #162B07 #072B1C
monochromatic
#1A0418 #1A0418 #2B0728 #601059 #94188A

Accessibility & contrast

On white

18.04
#2B0728 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#2B0728 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0728
18.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0728#FFFFFF#000000##FFFFFF
##2B07281.0018.041.1618.04
#FFFFFF18.041.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051329
Deuteranopia (green-blind)
#121827
Tritanopia (blue-blind)
#2D0B16
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #2b0728;
/* rgb */ color: rgb(43, 7, 40);
/* oklch */ color: oklch(21.2% 0.076 331.4);
Tailwind
colors: {
  custom: {
    50: '#664a62',
    500: '#2b0728',
    950: '#000000',
  },
}
SCSS
$custom: #2b0728;
$custom-light: #664a62;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0728",
  "rgb": {
    "r": 43,
    "g": 7,
    "b": 40
  },
  "hsl": {
    "h": 305,
    "s": 72,
    "l": 9.804
  },
  "oklch": {
    "l": 0.21153,
    "c": 0.07601,
    "h": 331.4
  },
  "luminance": 0.00819
}

Semantic roles & 50–950 ramp

primary
#2B0728
secondary
#236B29
accent
#EF4839
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#060105
muted
#7A7779

Preview Lab

Preview with #2B0728

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

Preview Lab → · Contrast checker → · Palette generator →

#2B0728 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva