#281D2F#281D2F

#281D2F is a dark, muted violet. Relative luminance 0.015; OKLCH L 25.2% C 0.037 H 311.7°. Best body text is #FFFFFF at 16.07:1 contrast (WCAG AA passes).

Color values

HEX#281D2F
RGBrgb(40, 29, 47)
HSLhsl(277, 24%, 15%)
HSVhsv(277, 38%, 18%)
CMYKcmyk(14.9%, 38.3%, 0%, 81.6%)
CIE-LABlab(12.83, 9.68, -9.94)
CIE-LCHlch(12.83, 13.88, 314.23°)
OKLaboklab(25.24% 0.0243 -0.0273)
OKLCHoklch(25.24% 0.037 311.7)
XYZxyz(1.8274, 1.5351, 2.8888)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D2F #242F1D
analogous
#1F1D2F #281D2F #2F1D2D
triadic
#281D2F #2F281D #1D2F28
tetradic
#281D2F #2F1F1D #242F1D #1D2D2F
square
#281D2F #2F1F1D #242F1D #1D2D2F
split-complementary
#281D2F #2D2F1D #1D2F1F
monochromatic
#100C13 #100C13 #281D2F #483455 #684C7B

Accessibility & contrast

On white

16.07
#281D2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#281D2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281D2F
16.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D2F#FFFFFF#000000##FFFFFF
##281D2F1.0016.071.3116.07
#FFFFFF16.071.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2130
Deuteranopia (green-blind)
#1C212E
Tritanopia (blue-blind)
#271F24
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #281d2f;
/* rgb */ color: rgb(40, 29, 47);
/* oklch */ color: oklch(25.2% 0.037 311.7);
Tailwind
colors: {
  custom: {
    50: '#625967',
    500: '#281d2f',
    950: '#000000',
  },
}
SCSS
$custom: #281d2f;
$custom-light: #625967;
$custom-dark: #000000;
JSON
{
  "hex": "#281d2f",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 47
  },
  "hsl": {
    "h": 276.667,
    "s": 23.684,
    "l": 14.902
  },
  "oklch": {
    "l": 0.25235,
    "c": 0.03654,
    "h": 311.7
  },
  "luminance": 0.01535
}

Semantic roles & 50–950 ramp

primary
#281D2F
secondary
#516246
accent
#C0688A
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050306
muted
#79787A

Preview Lab

Preview with #281D2F

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

Preview Lab → · Contrast checker → · Palette generator →

#281D2F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva