#2B0226#2B0226

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

Color values

HEX#2B0226
RGBrgb(43, 2, 38)
HSLhsl(307, 91%, 9%)
HSVhsv(307, 95%, 17%)
CMYKcmyk(0%, 95.3%, 11.6%, 83.1%)
CIE-LABlab(6.30, 25.51, -13.40)
CIE-LCHlch(6.30, 28.81, 332.30°)
OKLaboklab(20.23% 0.0758 -0.0375)
OKLCHoklch(20.23% 0.085 333.7)
XYZxyz(1.3678, 0.6971, 1.8959)
Luminance0.0070 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0226 #022B07
analogous
#1C022B #2B0226 #2B0212
triadic
#2B0226 #262B02 #02262B
tetradic
#2B0226 #2B1C02 #022B07 #02122B
square
#2B0226 #2B1C02 #022B07 #02122B
split-complementary
#2B0226 #122B02 #022B1C
monochromatic
#1D011A #1D011A #2B0226 #65055A #A0078D

Accessibility & contrast

On white

18.43
#2B0226 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B0226
18.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0226#FFFFFF#000000##FFFFFF
##2B02261.0018.431.1418.43
#FFFFFF18.431.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011027
Deuteranopia (green-blind)
#101625
Tritanopia (blue-blind)
#2E0513
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #2b0226;
/* rgb */ color: rgb(43, 2, 38);
/* oklch */ color: oklch(20.2% 0.085 333.7);
Tailwind
colors: {
  custom: {
    50: '#664760',
    500: '#2b0226',
    950: '#000000',
  },
}
SCSS
$custom: #2b0226;
$custom-light: #664760;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0226",
  "rgb": {
    "r": 43,
    "g": 2,
    "b": 38
  },
  "hsl": {
    "h": 307.317,
    "s": 91.111,
    "l": 8.824
  },
  "oklch": {
    "l": 0.20233,
    "c": 0.08452,
    "h": 333.7
  },
  "luminance": 0.00697
}

Semantic roles & 50–950 ramp

primary
#2B0226
secondary
#197023
accent
#FF4329
background
#F6F4F5
surface
#EBE6E9
border
#C6C2C5
text
#060005
muted
#7A7779

Preview Lab

Preview with #2B0226

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

Preview Lab → · Contrast checker → · Palette generator →

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