#281A32#281A32

#281A32 is a very dark, muted violet. Relative luminance 0.014; OKLCH L 24.7% C 0.048 H 310.1°. Best body text is #FFFFFF at 16.36:1 contrast (WCAG AA passes).

Color values

HEX#281A32
RGBrgb(40, 26, 50)
HSLhsl(275, 32%, 15%)
HSVhsv(275, 48%, 20%)
CMYKcmyk(20%, 48%, 0%, 80.4%)
CIE-LABlab(12.09, 12.69, -13.26)
CIE-LCHlch(12.09, 18.35, 313.74°)
OKLaboklab(24.73% 0.0309 -0.0367)
OKLCHoklch(24.73% 0.048 310.1)
XYZxyz(1.8201, 1.4202, 3.1952)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A32 #24321A
analogous
#1C1A32 #281A32 #321A30
triadic
#281A32 #32281A #1A3228
tetradic
#281A32 #321C1A #24321A #1A3032
square
#281A32 #321C1A #24321A #1A3032
split-complementary
#281A32 #30321A #1A321C
monochromatic
#100A14 #100A14 #281A32 #482F5A #684483

Accessibility & contrast

On white

16.36
#281A32 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#281A32 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281A32
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A32#FFFFFF#000000##FFFFFF
##281A321.0016.361.2816.36
#FFFFFF16.361.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#151F33
Deuteranopia (green-blind)
#182031
Tritanopia (blue-blind)
#271E23
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #281a32;
/* rgb */ color: rgb(40, 26, 50);
/* oklch */ color: oklch(24.7% 0.048 310.1);
Tailwind
colors: {
  custom: {
    50: '#62566a',
    500: '#281a32',
    950: '#000000',
  },
}
SCSS
$custom: #281a32;
$custom-light: #62566a;
$custom-dark: #000000;
JSON
{
  "hex": "#281a32",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 50
  },
  "hsl": {
    "h": 275,
    "s": 31.579,
    "l": 14.902
  },
  "oklch": {
    "l": 0.24728,
    "c": 0.04798,
    "h": 310.1
  },
  "luminance": 0.0142
}

Semantic roles & 50–950 ramp

primary
#281A32
secondary
#516641
accent
#C8608B
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050306
muted
#79787A

Preview Lab

Preview with #281A32

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

Preview Lab → · Contrast checker → · Palette generator →

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