#281F2D#281F2D

#281F2D is a dark, muted violet. Relative luminance 0.016; OKLCH L 25.6% C 0.029 H 313.3°. Best body text is #FFFFFF at 15.86:1 contrast (WCAG AA passes).

Color values

HEX#281F2D
RGBrgb(40, 31, 45)
HSLhsl(279, 18%, 15%)
HSVhsv(279, 31%, 18%)
CMYKcmyk(11.1%, 31.1%, 0%, 82.4%)
CIE-LABlab(13.36, 7.69, -7.70)
CIE-LCHlch(13.36, 10.88, 314.98°)
OKLaboklab(25.61% 0.0197 -0.0209)
OKLCHoklch(25.61% 0.029 313.3)
XYZxyz(1.8386, 1.6206, 2.6981)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F2D #242D1F
analogous
#211F2D #281F2D #2D1F2B
triadic
#281F2D #2D281F #1F2D28
tetradic
#281F2D #2D211F #242D1F #1F2B2D
square
#281F2D #2D211F #242D1F #1F2B2D
split-complementary
#281F2D #2B2D1F #1F2D21
monochromatic
#100C12 #100C12 #281F2D #483851 #685175

Accessibility & contrast

On white

15.86
#281F2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281F2D
15.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F2D#FFFFFF#000000##FFFFFF
##281F2D1.0015.861.3215.86
#FFFFFF15.861.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D222E
Deuteranopia (green-blind)
#1F232D
Tritanopia (blue-blind)
#282124
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #281f2d;
/* rgb */ color: rgb(40, 31, 45);
/* oklch */ color: oklch(25.6% 0.029 313.3);
Tailwind
colors: {
  custom: {
    50: '#625a65',
    500: '#281f2d',
    950: '#000000',
  },
}
SCSS
$custom: #281f2d;
$custom-light: #625a65;
$custom-dark: #000000;
JSON
{
  "hex": "#281f2d",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 45
  },
  "hsl": {
    "h": 278.571,
    "s": 18.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.25605,
    "c": 0.02876,
    "h": 313.3
  },
  "luminance": 0.01621
}

Semantic roles & 50–950 ramp

primary
#281F2D
secondary
#515F49
accent
#BB6D89
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050305
muted
#79787A

Preview Lab

Preview with #281F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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