#281D3D#281D3D

#281D3D is a dark, muted violet. Relative luminance 0.017; OKLCH L 26.1% C 0.059 H 298.0°. Best body text is #FFFFFF at 15.75:1 contrast (WCAG AA passes).

Color values

HEX#281D3D
RGBrgb(40, 29, 61)
HSLhsl(261, 36%, 18%)
HSVhsv(261, 52%, 24%)
CMYKcmyk(34.4%, 52.5%, 0%, 76.1%)
CIE-LABlab(13.63, 13.83, -18.68)
CIE-LCHlch(13.63, 23.24, 306.51°)
OKLaboklab(26.11% 0.0279 -0.0524)
OKLCHoklch(26.11% 0.059 298)
XYZxyz(2.1565, 1.6667, 4.6221)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D3D #323D1D
analogous
#1D223D #281D3D #381D3D
triadic
#281D3D #3D281D #1D3D28
tetradic
#281D3D #3D1D22 #323D1D #1D3D38
square
#281D3D #3D1D22 #323D1D #1D3D38
split-complementary
#281D3D #3D381D #223D1D
monochromatic
#0E0A15 #0E0A15 #281D3D #433166 #5E4490

Accessibility & contrast

On white

15.75
#281D3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#281D3D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281D3D
15.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D3D#FFFFFF#000000##FFFFFF
##281D3D1.0015.751.3315.75
#FFFFFF15.751.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13233E
Deuteranopia (green-blind)
#15233C
Tritanopia (blue-blind)
#24232A
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #281d3d;
/* rgb */ color: rgb(40, 29, 61);
/* oklch */ color: oklch(26.1% 0.059 298.0);
Tailwind
colors: {
  custom: {
    50: '#635972',
    500: '#281d3d',
    950: '#000000',
  },
}
SCSS
$custom: #281d3d;
$custom-light: #635972;
$custom-dark: #000000;
JSON
{
  "hex": "#281d3d",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 61
  },
  "hsl": {
    "h": 260.625,
    "s": 35.556,
    "l": 17.647
  },
  "oklch": {
    "l": 0.26105,
    "c": 0.0594,
    "h": 298
  },
  "luminance": 0.01667
}

Semantic roles & 50–950 ramp

primary
#281D3D
secondary
#627244
accent
#CC5CA5
background
#F5F5F6
surface
#EAE9EC
border
#C6C5C7
text
#050308
muted
#79787B

Preview Lab

Preview with #281D3D

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

Preview Lab → · Contrast checker → · Palette generator →

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