#281E2F#281E2F

#281E2F is a dark, muted violet. Relative luminance 0.016; OKLCH L 25.5% C 0.034 H 310.8°. Best body text is #FFFFFF at 15.95:1 contrast (WCAG AA passes).

Color values

HEX#281E2F
RGBrgb(40, 30, 47)
HSLhsl(275, 22%, 15%)
HSVhsv(275, 36%, 18%)
CMYKcmyk(14.9%, 36.2%, 0%, 81.6%)
CIE-LABlab(13.14, 8.96, -9.47)
CIE-LCHlch(13.14, 13.04, 313.41°)
OKLaboklab(25.47% 0.0224 -0.0259)
OKLCHoklch(25.47% 0.034 310.8)
XYZxyz(1.8523, 1.5849, 2.8971)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E2F #252F1E
analogous
#1F1E2F #281E2F #2F1E2D
triadic
#281E2F #2F281E #1E2F28
tetradic
#281E2F #2F1F1E #252F1E #1E2D2F
square
#281E2F #2F1F1E #252F1E #1E2D2F
split-complementary
#281E2F #2D2F1E #1E2F1F
monochromatic
#100C13 #100C13 #281E2F #483654 #684E7A

Accessibility & contrast

On white

15.95
#281E2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281E2F
15.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E2F#FFFFFF#000000##FFFFFF
##281E2F1.0015.951.3215.95
#FFFFFF15.951.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281e2f;
/* rgb */ color: rgb(40, 30, 47);
/* oklch */ color: oklch(25.5% 0.034 310.8);
Tailwind
colors: {
  custom: {
    50: '#625967',
    500: '#281e2f',
    950: '#000000',
  },
}
SCSS
$custom: #281e2f;
$custom-light: #625967;
$custom-dark: #000000;
JSON
{
  "hex": "#281e2f",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 47
  },
  "hsl": {
    "h": 275.294,
    "s": 22.078,
    "l": 15.098
  },
  "oklch": {
    "l": 0.25471,
    "c": 0.03426,
    "h": 310.8
  },
  "luminance": 0.01585
}

Semantic roles & 50–950 ramp

primary
#281E2F
secondary
#526147
accent
#BF698C
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050306
muted
#79787A

Preview Lab

Preview with #281E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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