#281E2E#281E2E

#281E2E is a dark, muted violet. Relative luminance 0.016; OKLCH L 25.4% C 0.033 H 312.5°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#281E2E
RGBrgb(40, 30, 46)
HSLhsl(278, 21%, 15%)
HSVhsv(278, 35%, 18%)
CMYKcmyk(13%, 34.8%, 0%, 82%)
CIE-LABlab(13.09, 8.69, -8.82)
CIE-LCHlch(13.09, 12.38, 314.55°)
OKLaboklab(25.42% 0.0221 -0.0241)
OKLCHoklch(25.42% 0.033 312.5)
XYZxyz(1.8324, 1.5769, 2.7921)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E2E #242E1E
analogous
#201E2E #281E2E #2E1E2C
triadic
#281E2E #2E281E #1E2E28
tetradic
#281E2E #2E201E #242E1E #1E2C2E
square
#281E2E #2E201E #242E1E #1E2C2E
split-complementary
#281E2E #2C2E1E #1E2E20
monochromatic
#100C13 #100C13 #281E2E #483653 #684E78

Accessibility & contrast

On white

15.96
#281E2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#281E2E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281E2E
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E2E#FFFFFF#000000##FFFFFF
##281E2E1.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C212F
Deuteranopia (green-blind)
#1E222D
Tritanopia (blue-blind)
#282024
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #281e2e;
/* rgb */ color: rgb(40, 30, 46);
/* oklch */ color: oklch(25.4% 0.033 312.5);
Tailwind
colors: {
  custom: {
    50: '#625966',
    500: '#281e2e',
    950: '#000000',
  },
}
SCSS
$custom: #281e2e;
$custom-light: #625966;
$custom-dark: #000000;
JSON
{
  "hex": "#281e2e",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 46
  },
  "hsl": {
    "h": 277.5,
    "s": 21.053,
    "l": 14.902
  },
  "oklch": {
    "l": 0.25417,
    "c": 0.03267,
    "h": 312.5
  },
  "luminance": 0.01577
}

Semantic roles & 50–950 ramp

primary
#281E2E
secondary
#516048
accent
#BE6A89
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050306
muted
#79787A

Preview Lab

Preview with #281E2E

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

Preview Lab → · Contrast checker → · Palette generator →

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