#2B0228#2B0228

#2B0228 is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.4% C 0.086 H 331.4°. Best body text is #FFFFFF at 18.39:1 contrast (WCAG AA passes).

Color values

HEX#2B0228
RGBrgb(43, 2, 40)
HSLhsl(304, 91%, 9%)
HSVhsv(304, 95%, 17%)
CMYKcmyk(0%, 95.3%, 7%, 83.1%)
CIE-LABlab(6.42, 25.97, -14.73)
CIE-LCHlch(6.42, 29.86, 330.44°)
OKLaboklab(20.38% 0.0758 -0.0412)
OKLCHoklch(20.38% 0.086 331.4)
XYZxyz(1.4010, 0.7103, 2.0704)
Luminance0.0071 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0228 #022B05
analogous
#1A022B #2B0228 #2B0214
triadic
#2B0228 #282B02 #02282B
tetradic
#2B0228 #2B1A02 #022B05 #02142B
square
#2B0228 #2B1A02 #022B05 #02142B
split-complementary
#2B0228 #142B02 #022B1A
monochromatic
#1D011B #1D011B #2B0228 #65055E #A00795

Accessibility & contrast

On white

18.39
#2B0228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B0228
18.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0228#FFFFFF#000000##FFFFFF
##2B02281.0018.391.1418.39
#FFFFFF18.391.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b0228;
/* rgb */ color: rgb(43, 2, 40);
/* oklch */ color: oklch(20.4% 0.086 331.4);
Tailwind
colors: {
  custom: {
    50: '#664762',
    500: '#2b0228',
    950: '#000000',
  },
}
SCSS
$custom: #2b0228;
$custom-light: #664762;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0228",
  "rgb": {
    "r": 43,
    "g": 2,
    "b": 40
  },
  "hsl": {
    "h": 304.39,
    "s": 91.111,
    "l": 8.824
  },
  "oklch": {
    "l": 0.20378,
    "c": 0.08624,
    "h": 331.4
  },
  "luminance": 0.0071
}

Semantic roles & 50–950 ramp

primary
#2B0228
secondary
#19701F
accent
#FF3829
background
#F6F4F5
surface
#EBE6EA
border
#C6C2C6
text
#060005
muted
#7A7779

Preview Lab

Preview with #2B0228

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

Preview Lab → · Contrast checker → · Palette generator →

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