#2E282F#2E282F

#2E282F is a dark, near-neutral purple. Relative luminance 0.023; OKLCH L 28.6% C 0.015 H 321.4°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#2E282F
RGBrgb(46, 40, 47)
HSLhsl(291, 8%, 17%)
HSVhsv(291, 15%, 18%)
CMYKcmyk(2.1%, 14.9%, 0%, 81.6%)
CIE-LABlab(17.01, 4.39, -3.55)
CIE-LCHlch(17.01, 5.64, 321.05°)
OKLaboklab(28.62% 0.0119 -0.0095)
OKLCHoklch(28.62% 0.015 321.4)
XYZxyz(2.3985, 2.3037, 3.0071)
Luminance0.0230 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E282F #292F28
analogous
#2B282F #2E282F #2F282D
triadic
#2E282F #2F2E28 #282F2E
tetradic
#2E282F #2F2B28 #292F28 #282D2F
square
#2E282F #2F2B28 #292F28 #282D2F
split-complementary
#2E282F #2D2F28 #282F2B
monochromatic
#100E11 #100E11 #2E282F #4E4450 #6F6071

Accessibility & contrast

On white

14.38
#2E282F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2E282F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E282F
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E282F#FFFFFF#000000##FFFFFF
##2E282F1.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27292F
Deuteranopia (green-blind)
#292A2F
Tritanopia (blue-blind)
#2E292A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e282f;
/* rgb */ color: rgb(46, 40, 47);
/* oklch */ color: oklch(28.6% 0.015 321.4);
Tailwind
colors: {
  custom: {
    50: '#666167',
    500: '#2e282f',
    950: '#000000',
  },
}
SCSS
$custom: #2e282f;
$custom-light: #666167;
$custom-dark: #000000;
JSON
{
  "hex": "#2e282f",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 47
  },
  "hsl": {
    "h": 291.429,
    "s": 8.046,
    "l": 17.059
  },
  "oklch": {
    "l": 0.28621,
    "c": 0.01518,
    "h": 321.4
  },
  "luminance": 0.02304
}

Semantic roles & 50–950 ramp

primary
#2E282F
secondary
#565E54
accent
#B1777F
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#060506
muted
#7A797A

Preview Lab

Preview with #2E282F

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

Preview Lab → · Contrast checker → · Palette generator →

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