#2B0838#2B0838

#2B0838 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.5% C 0.091 H 315.0°. Best body text is #FFFFFF at 17.58:1 contrast (WCAG AA passes).

Color values

HEX#2B0838
RGBrgb(43, 8, 56)
HSLhsl(284, 75%, 13%)
HSVhsv(284, 86%, 22%)
CMYKcmyk(23.2%, 85.7%, 0%, 78%)
CIE-LABlab(8.76, 26.46, -22.86)
CIE-LCHlch(8.76, 34.97, 319.18°)
OKLaboklab(22.52% 0.0646 -0.0644)
OKLCHoklch(22.52% 0.091 315)
XYZxyz(1.7968, 0.9728, 3.8337)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0838 #153808
analogous
#130838 #2B0838 #38082D
triadic
#2B0838 #382B08 #08382B
tetradic
#2B0838 #381308 #153808 #082D38
square
#2B0838 #381308 #153808 #082D38
split-complementary
#2B0838 #2D3808 #083813
monochromatic
#15041B #15041B #2B0838 #54106E #7D17A3

Accessibility & contrast

On white

17.58
#2B0838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#2B0838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0838
17.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0838#FFFFFF#000000##FFFFFF
##2B08381.0017.581.1917.58
#FFFFFF17.581.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001739
Deuteranopia (green-blind)
#061A37
Tritanopia (blue-blind)
#2A121F
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #2b0838;
/* rgb */ color: rgb(43, 8, 56);
/* oklch */ color: oklch(22.5% 0.091 315.0);
Tailwind
colors: {
  custom: {
    50: '#674b6f',
    500: '#2b0838',
    950: '#000000',
  },
}
SCSS
$custom: #2b0838;
$custom-light: #674b6f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0838",
  "rgb": {
    "r": 43,
    "g": 8,
    "b": 56
  },
  "hsl": {
    "h": 283.75,
    "s": 75,
    "l": 12.549
  },
  "oklch": {
    "l": 0.22523,
    "c": 0.09122,
    "h": 315
  },
  "luminance": 0.00973
}

Semantic roles & 50–950 ramp

primary
#2B0838
secondary
#3B7725
accent
#F23669
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2B0838

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

Preview Lab → · Contrast checker → · Palette generator →

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