#2B0126#2B0126

#2B0126 is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.1% C 0.087 H 333.7°. Best body text is #FFFFFF at 18.50:1 contrast (WCAG AA passes).

Color values

HEX#2B0126
RGBrgb(43, 1, 38)
HSLhsl(307, 95%, 9%)
HSVhsv(307, 98%, 17%)
CMYKcmyk(0%, 97.7%, 11.6%, 83.1%)
CIE-LABlab(6.10, 26.03, -13.70)
CIE-LCHlch(6.10, 29.42, 332.25°)
OKLaboklab(20.07% 0.0778 -0.0385)
OKLCHoklch(20.07% 0.087 333.7)
XYZxyz(1.3570, 0.6754, 1.8922)
Luminance0.0067 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0126 #012B06
analogous
#1B012B #2B0126 #2B0111
triadic
#2B0126 #262B01 #01262B
tetradic
#2B0126 #2B1B01 #012B06 #01112B
square
#2B0126 #2B1B01 #012B06 #01112B
split-complementary
#2B0126 #112B01 #012B1B
monochromatic
#1E011A #1E011A #2B0126 #67025B #A30490

Accessibility & contrast

On white

18.50
#2B0126 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B0126
18.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0126#FFFFFF#000000##FFFFFF
##2B01261.0018.501.1418.50
#FFFFFF18.501.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F27
Deuteranopia (green-blind)
#0F1625
Tritanopia (blue-blind)
#2E0412
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #2b0126;
/* rgb */ color: rgb(43, 1, 38);
/* oklch */ color: oklch(20.1% 0.087 333.7);
Tailwind
colors: {
  custom: {
    50: '#664760',
    500: '#2b0126',
    950: '#000000',
  },
}
SCSS
$custom: #2b0126;
$custom-light: #664760;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0126",
  "rgb": {
    "r": 43,
    "g": 1,
    "b": 38
  },
  "hsl": {
    "h": 307.143,
    "s": 95.455,
    "l": 8.627
  },
  "oklch": {
    "l": 0.20068,
    "c": 0.08677,
    "h": 333.7
  },
  "luminance": 0.00675
}

Semantic roles & 50–950 ramp

primary
#2B0126
secondary
#177121
accent
#FF4229
background
#F6F4F5
surface
#EBE6E9
border
#C6C2C5
text
#060005
muted
#7A7779

Preview Lab

Preview with #2B0126

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

Preview Lab → · Contrast checker → · Palette generator →

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