#281F32#281F32

#281F32 is a dark, muted violet. Relative luminance 0.017; OKLCH L 25.9% C 0.037 H 305.7°. Best body text is #FFFFFF at 15.76:1 contrast (WCAG AA passes).

Color values

HEX#281F32
RGBrgb(40, 31, 50)
HSLhsl(268, 23%, 16%)
HSVhsv(268, 38%, 20%)
CMYKcmyk(20%, 38%, 0%, 80.4%)
CIE-LABlab(13.60, 9.08, -10.91)
CIE-LCHlch(13.60, 14.19, 309.75°)
OKLaboklab(25.87% 0.0215 -0.03)
OKLCHoklch(25.87% 0.037 305.7)
XYZxyz(1.9407, 1.6614, 3.2354)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F32 #29321F
analogous
#1F1F32 #281F32 #311F32
triadic
#281F32 #32281F #1F3228
tetradic
#281F32 #321F1F #29321F #1F3231
square
#281F32 #321F1F #29321F #1F3231
split-complementary
#281F32 #32311F #1F321F
monochromatic
#0F0C13 #0F0C13 #281F32 #463658 #644E7E

Accessibility & contrast

On white

15.76
#281F32 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281F32
15.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F32#FFFFFF#000000##FFFFFF
##281F321.0015.761.3315.76
#FFFFFF15.761.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2233
Deuteranopia (green-blind)
#1D2331
Tritanopia (blue-blind)
#272226
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #281f32;
/* rgb */ color: rgb(40, 31, 50);
/* oklch */ color: oklch(25.9% 0.037 305.7);
Tailwind
colors: {
  custom: {
    50: '#625a6a',
    500: '#281f32',
    950: '#000000',
  },
}
SCSS
$custom: #281f32;
$custom-light: #625a6a;
$custom-dark: #000000;
JSON
{
  "hex": "#281f32",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 50
  },
  "hsl": {
    "h": 268.421,
    "s": 23.457,
    "l": 15.882
  },
  "oklch": {
    "l": 0.25873,
    "c": 0.03696,
    "h": 305.7
  },
  "luminance": 0.01661
}

Semantic roles & 50–950 ramp

primary
#281F32
secondary
#576548
accent
#C06896
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050306
muted
#79787A

Preview Lab

Preview with #281F32

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

Preview Lab → · Contrast checker → · Palette generator →

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