#2B172E#2B172E

#2B172E is a very dark, muted purple. Relative luminance 0.013; OKLCH L 24.3% C 0.051 H 322.2°. Best body text is #FFFFFF at 16.60:1 contrast (WCAG AA passes).

Color values

HEX#2B172E
RGBrgb(43, 23, 46)
HSLhsl(292, 33%, 14%)
HSVhsv(292, 50%, 18%)
CMYKcmyk(6.5%, 50%, 0%, 82%)
CIE-LABlab(11.44, 14.89, -11.33)
CIE-LCHlch(11.44, 18.71, 322.73°)
OKLaboklab(24.26% 0.0401 -0.0311)
OKLCHoklch(24.26% 0.051 322.2)
XYZxyz(1.7957, 1.3237, 2.7451)
Luminance0.0132 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B172E #1A2E17
analogous
#1F172E #2B172E #2E1725
triadic
#2B172E #2E2B17 #172E2B
tetradic
#2B172E #2E1F17 #1A2E17 #17252E
square
#2B172E #2E1F17 #1A2E17 #17252E
split-complementary
#2B172E #252E17 #172E1F
monochromatic
#130A14 #130A14 #2B172E #512B57 #774080

Accessibility & contrast

On white

16.60
#2B172E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2B172E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B172E
16.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B172E#FFFFFF#000000##FFFFFF
##2B172E1.0016.601.2616.60
#FFFFFF16.601.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#141D2F
Deuteranopia (green-blind)
#191F2D
Tritanopia (blue-blind)
#2C1A20
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2b172e;
/* rgb */ color: rgb(43, 23, 46);
/* oklch */ color: oklch(24.3% 0.051 322.2);
Tailwind
colors: {
  custom: {
    50: '#655466',
    500: '#2b172e',
    950: '#000000',
  },
}
SCSS
$custom: #2b172e;
$custom-light: #655466;
$custom-dark: #000000;
JSON
{
  "hex": "#2b172e",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 46
  },
  "hsl": {
    "h": 292.174,
    "s": 33.333,
    "l": 13.529
  },
  "oklch": {
    "l": 0.2426,
    "c": 0.05072,
    "h": 322.2
  },
  "luminance": 0.01324
}

Semantic roles & 50–950 ramp

primary
#2B172E
secondary
#43633E
accent
#C95E6C
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050206
muted
#7A787A

Preview Lab

Preview with #2B172E

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

Preview Lab → · Contrast checker → · Palette generator →

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