#281C2F#281C2F

#281C2F is a dark, muted violet. Relative luminance 0.015; OKLCH L 25.0% C 0.039 H 312.5°. Best body text is #FFFFFF at 16.19:1 contrast (WCAG AA passes).

Color values

HEX#281C2F
RGBrgb(40, 28, 47)
HSLhsl(278, 25%, 15%)
HSVhsv(278, 40%, 18%)
CMYKcmyk(14.9%, 40.4%, 0%, 81.6%)
CIE-LABlab(12.52, 10.41, -10.42)
CIE-LCHlch(12.52, 14.72, 314.97°)
OKLaboklab(25% 0.0262 -0.0286)
OKLCHoklch(25% 0.039 312.5)
XYZxyz(1.8033, 1.4869, 2.8808)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C2F #232F1C
analogous
#1F1C2F #281C2F #2F1C2D
triadic
#281C2F #2F281C #1C2F28
tetradic
#281C2F #2F1F1C #232F1C #1C2D2F
square
#281C2F #2F1F1C #232F1C #1C2D2F
split-complementary
#281C2F #2D2F1C #1C2F1F
monochromatic
#100B13 #100B13 #281C2F #493355 #694A7C

Accessibility & contrast

On white

16.19
#281C2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#281C2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281C2F
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C2F#FFFFFF#000000##FFFFFF
##281C2F1.0016.191.3016.19
#FFFFFF16.191.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192030
Deuteranopia (green-blind)
#1C212E
Tritanopia (blue-blind)
#271F23
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #281c2f;
/* rgb */ color: rgb(40, 28, 47);
/* oklch */ color: oklch(25.0% 0.039 312.5);
Tailwind
colors: {
  custom: {
    50: '#625867',
    500: '#281c2f',
    950: '#000000',
  },
}
SCSS
$custom: #281c2f;
$custom-light: #625867;
$custom-dark: #000000;
JSON
{
  "hex": "#281c2f",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 47
  },
  "hsl": {
    "h": 277.895,
    "s": 25.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.25003,
    "c": 0.03881,
    "h": 312.5
  },
  "luminance": 0.01487
}

Semantic roles & 50–950 ramp

primary
#281C2F
secondary
#506245
accent
#C26688
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050306
muted
#79787A

Preview Lab

Preview with #281C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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