#281D2E#281D2E

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

Color values

HEX#281D2E
RGBrgb(40, 29, 46)
HSLhsl(279, 23%, 15%)
HSVhsv(279, 37%, 18%)
CMYKcmyk(13%, 37%, 0%, 82%)
CIE-LABlab(12.78, 9.41, -9.30)
CIE-LCHlch(12.78, 13.23, 315.34°)
OKLaboklab(25.18% 0.024 -0.0254)
OKLCHoklch(25.18% 0.035 313.3)
XYZxyz(1.8075, 1.5271, 2.7838)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D2E #232E1D
analogous
#201D2E #281D2E #2E1D2C
triadic
#281D2E #2E281D #1D2E28
tetradic
#281D2E #2E201D #232E1D #1D2C2E
square
#281D2E #2E201D #232E1D #1D2C2E
split-complementary
#281D2E #2C2E1D #1D2E20
monochromatic
#100C13 #100C13 #281D2E #493554 #694C79

Accessibility & contrast

On white

16.09
#281D2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281D2E
16.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D2E#FFFFFF#000000##FFFFFF
##281D2E1.0016.091.3116.09
#FFFFFF16.091.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A202F
Deuteranopia (green-blind)
#1D212D
Tritanopia (blue-blind)
#281F23
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #281d2e;
/* rgb */ color: rgb(40, 29, 46);
/* oklch */ color: oklch(25.2% 0.035 313.3);
Tailwind
colors: {
  custom: {
    50: '#625966',
    500: '#281d2e',
    950: '#000000',
  },
}
SCSS
$custom: #281d2e;
$custom-light: #625966;
$custom-dark: #000000;
JSON
{
  "hex": "#281d2e",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 46
  },
  "hsl": {
    "h": 278.824,
    "s": 22.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.25181,
    "c": 0.03495,
    "h": 313.3
  },
  "luminance": 0.01527
}

Semantic roles & 50–950 ramp

primary
#281D2E
secondary
#506146
accent
#BF6987
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050306
muted
#79787A

Preview Lab

Preview with #281D2E

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

Preview Lab → · Contrast checker → · Palette generator →

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