#2B0128#2B0128

#2B0128 is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.2% C 0.088 H 331.5°. Best body text is #FFFFFF at 18.46:1 contrast (WCAG AA passes).

Color values

HEX#2B0128
RGBrgb(43, 1, 40)
HSLhsl(304, 95%, 9%)
HSVhsv(304, 98%, 17%)
CMYKcmyk(0%, 97.7%, 7%, 83.1%)
CIE-LABlab(6.22, 26.50, -15.04)
CIE-LCHlch(6.22, 30.47, 330.42°)
OKLaboklab(20.22% 0.0777 -0.0423)
OKLCHoklch(20.22% 0.088 331.5)
XYZxyz(1.3901, 0.6886, 2.0668)
Luminance0.0069 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0128 #012B04
analogous
#19012B #2B0128 #2B0113
triadic
#2B0128 #282B01 #01282B
tetradic
#2B0128 #2B1901 #012B04 #01132B
square
#2B0128 #2B1901 #012B04 #01132B
split-complementary
#2B0128 #132B01 #012B19
monochromatic
#1E011C #1E011C #2B0128 #670260 #A30497

Accessibility & contrast

On white

18.46
#2B0128 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#2B0128 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0128
18.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0128#FFFFFF#000000##FFFFFF
##2B01281.0018.461.1418.46
#FFFFFF18.461.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001029
Deuteranopia (green-blind)
#0E1627
Tritanopia (blue-blind)
#2D0514
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #2b0128;
/* rgb */ color: rgb(43, 1, 40);
/* oklch */ color: oklch(20.2% 0.088 331.5);
Tailwind
colors: {
  custom: {
    50: '#664762',
    500: '#2b0128',
    950: '#000000',
  },
}
SCSS
$custom: #2b0128;
$custom-light: #664762;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0128",
  "rgb": {
    "r": 43,
    "g": 1,
    "b": 40
  },
  "hsl": {
    "h": 304.286,
    "s": 95.455,
    "l": 8.627
  },
  "oklch": {
    "l": 0.20215,
    "c": 0.08845,
    "h": 331.5
  },
  "luminance": 0.00689
}

Semantic roles & 50–950 ramp

primary
#2B0128
secondary
#17711D
accent
#FF3829
background
#F6F4F5
surface
#EBE6EA
border
#C6C2C6
text
#060005
muted
#7A7779

Preview Lab

Preview with #2B0128

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

Preview Lab → · Contrast checker → · Palette generator →

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