#2B0127#2B0127

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

Color values

HEX#2B0127
RGBrgb(43, 1, 39)
HSLhsl(306, 95%, 9%)
HSVhsv(306, 98%, 17%)
CMYKcmyk(0%, 97.7%, 9.3%, 83.1%)
CIE-LABlab(6.16, 26.27, -14.37)
CIE-LCHlch(6.16, 29.94, 331.31°)
OKLaboklab(20.14% 0.0777 -0.0404)
OKLCHoklch(20.14% 0.088 332.5)
XYZxyz(1.3733, 0.6819, 1.9784)
Luminance0.0068 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0127 #012B05
analogous
#1A012B #2B0127 #2B0112
triadic
#2B0127 #272B01 #01272B
tetradic
#2B0127 #2B1A01 #012B05 #01122B
square
#2B0127 #2B1A01 #012B05 #01122B
split-complementary
#2B0127 #122B01 #012B1A
monochromatic
#1E011B #1E011B #2B0127 #67025D #A30493

Accessibility & contrast

On white

18.48
#2B0127 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B0127
18.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0127#FFFFFF#000000##FFFFFF
##2B01271.0018.481.1418.48
#FFFFFF18.481.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001028
Deuteranopia (green-blind)
#0E1626
Tritanopia (blue-blind)
#2D0513
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #2b0127;
/* rgb */ color: rgb(43, 1, 39);
/* oklch */ color: oklch(20.1% 0.088 332.5);
Tailwind
colors: {
  custom: {
    50: '#664761',
    500: '#2b0127',
    950: '#000000',
  },
}
SCSS
$custom: #2b0127;
$custom-light: #664761;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0127",
  "rgb": {
    "r": 43,
    "g": 1,
    "b": 39
  },
  "hsl": {
    "h": 305.714,
    "s": 95.455,
    "l": 8.627
  },
  "oklch": {
    "l": 0.20141,
    "c": 0.08761,
    "h": 332.5
  },
  "luminance": 0.00682
}

Semantic roles & 50–950 ramp

primary
#2B0127
secondary
#17711F
accent
#FF3D29
background
#F6F4F5
surface
#EBE6E9
border
#C6C2C5
text
#060005
muted
#7A7779

Preview Lab

Preview with #2B0127

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

Preview Lab → · Contrast checker → · Palette generator →

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