#281F2F#281F2F

#281F2F is a dark, muted violet. Relative luminance 0.016; OKLCH L 25.7% C 0.032 H 309.8°. Best body text is #FFFFFF at 15.82:1 contrast (WCAG AA passes).

Color values

HEX#281F2F
RGBrgb(40, 31, 47)
HSLhsl(274, 21%, 15%)
HSVhsv(274, 34%, 18%)
CMYKcmyk(14.9%, 34%, 0%, 81.6%)
CIE-LABlab(13.45, 8.24, -8.99)
CIE-LCHlch(13.45, 12.19, 312.49°)
OKLaboklab(25.71% 0.0205 -0.0246)
OKLCHoklch(25.71% 0.032 309.8)
XYZxyz(1.8781, 1.6363, 2.9057)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F2F #262F1F
analogous
#201F2F #281F2F #2F1F2E
triadic
#281F2F #2F281F #1F2F28
tetradic
#281F2F #2F201F #262F1F #1F2E2F
square
#281F2F #2F201F #262F1F #1F2E2F
split-complementary
#281F2F #2E2F1F #1F2F20
monochromatic
#100C12 #100C12 #281F2F #473754 #675079

Accessibility & contrast

On white

15.82
#281F2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281F2F
15.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F2F#FFFFFF#000000##FFFFFF
##281F2F1.0015.821.3315.82
#FFFFFF15.821.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2230
Deuteranopia (green-blind)
#1E232F
Tritanopia (blue-blind)
#272125
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #281f2f;
/* rgb */ color: rgb(40, 31, 47);
/* oklch */ color: oklch(25.7% 0.032 309.8);
Tailwind
colors: {
  custom: {
    50: '#625a67',
    500: '#281f2f',
    950: '#000000',
  },
}
SCSS
$custom: #281f2f;
$custom-light: #625a67;
$custom-dark: #000000;
JSON
{
  "hex": "#281f2f",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 47
  },
  "hsl": {
    "h": 273.75,
    "s": 20.513,
    "l": 15.294
  },
  "oklch": {
    "l": 0.2571,
    "c": 0.032,
    "h": 309.8
  },
  "luminance": 0.01636
}

Semantic roles & 50–950 ramp

primary
#281F2F
secondary
#536149
accent
#BD6B8F
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050306
muted
#79787A

Preview Lab

Preview with #281F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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