#2E172F#2E172F

#2E172F is a very dark, muted purple. Relative luminance 0.014; OKLCH L 24.8% C 0.054 H 325.6°. Best body text is #FFFFFF at 16.41:1 contrast (WCAG AA passes).

Color values

HEX#2E172F
RGBrgb(46, 23, 47)
HSLhsl(298, 34%, 14%)
HSVhsv(298, 51%, 18%)
CMYKcmyk(2.1%, 51.1%, 0%, 81.6%)
CIE-LABlab(11.95, 16.31, -11.23)
CIE-LCHlch(11.95, 19.81, 325.44°)
OKLaboklab(24.76% 0.0448 -0.0307)
OKLCHoklch(24.76% 0.054 325.6)
XYZxyz(1.9462, 1.3990, 2.8563)
Luminance0.0140 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E172F #182F17
analogous
#22172F #2E172F #2F1724
triadic
#2E172F #2F2E17 #172F2E
tetradic
#2E172F #2F2217 #182F17 #17242F
square
#2E172F #2F2217 #182F17 #17242F
split-complementary
#2E172F #242F17 #172F22
monochromatic
#140A15 #140A15 #2E172F #562B58 #7E3F81

Accessibility & contrast

On white

16.41
#2E172F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2E172F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E172F
16.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E172F#FFFFFF#000000##FFFFFF
##2E172F1.0016.411.2816.41
#FFFFFF16.411.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#151E30
Deuteranopia (green-blind)
#1B202E
Tritanopia (blue-blind)
#2F1A20
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2e172f;
/* rgb */ color: rgb(46, 23, 47);
/* oklch */ color: oklch(24.8% 0.054 325.6);
Tailwind
colors: {
  custom: {
    50: '#675467',
    500: '#2e172f',
    950: '#000000',
  },
}
SCSS
$custom: #2e172f;
$custom-light: #675467;
$custom-dark: #000000;
JSON
{
  "hex": "#2e172f",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 47
  },
  "hsl": {
    "h": 297.5,
    "s": 34.286,
    "l": 13.725
  },
  "oklch": {
    "l": 0.24759,
    "c": 0.05437,
    "h": 325.6
  },
  "luminance": 0.01399
}

Semantic roles & 50–950 ramp

primary
#2E172F
secondary
#3F643D
accent
#CA5D62
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060306
muted
#7A787A

Preview Lab

Preview with #2E172F

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

Preview Lab → · Contrast checker → · Palette generator →

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