#2D262F#2D262F

#2D262F is a dark, near-neutral purple. Relative luminance 0.021; OKLCH L 28.0% C 0.019 H 318.7°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#2D262F
RGBrgb(45, 38, 47)
HSLhsl(287, 11%, 17%)
HSVhsv(287, 19%, 18%)
CMYKcmyk(4.3%, 19.1%, 0%, 81.6%)
CIE-LABlab(16.25, 5.36, -4.69)
CIE-LCHlch(16.25, 7.12, 318.82°)
OKLaboklab(28.01% 0.0143 -0.0126)
OKLCHoklch(28.01% 0.019 318.7)
XYZxyz(2.2883, 2.1494, 2.9831)
Luminance0.0215 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D262F #282F26
analogous
#29262F #2D262F #2F262D
triadic
#2D262F #2F2D26 #262F2D
tetradic
#2D262F #2F2926 #282F26 #262D2F
square
#2D262F #2F2926 #282F26 #262D2F
split-complementary
#2D262F #2D2F26 #262F29
monochromatic
#100E11 #100E11 #2D262F #4D4151 #6E5D73

Accessibility & contrast

On white

14.69
#2D262F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2D262F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D262F
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D262F#FFFFFF#000000##FFFFFF
##2D262F1.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25282F
Deuteranopia (green-blind)
#27292F
Tritanopia (blue-blind)
#2D2729
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2d262f;
/* rgb */ color: rgb(45, 38, 47);
/* oklch */ color: oklch(28.0% 0.019 318.7);
Tailwind
colors: {
  custom: {
    50: '#656067',
    500: '#2d262f',
    950: '#000000',
  },
}
SCSS
$custom: #2d262f;
$custom-light: #656067;
$custom-dark: #000000;
JSON
{
  "hex": "#2d262f",
  "rgb": {
    "r": 45,
    "g": 38,
    "b": 47
  },
  "hsl": {
    "h": 286.667,
    "s": 10.588,
    "l": 16.667
  },
  "oklch": {
    "l": 0.28009,
    "c": 0.01905,
    "h": 318.7
  },
  "luminance": 0.02149
}

Semantic roles & 50–950 ramp

primary
#2D262F
secondary
#555F52
accent
#B47482
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#050406
muted
#7A797A

Preview Lab

Preview with #2D262F

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

Preview Lab → · Contrast checker → · Palette generator →

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