#281C32#281C32

#281C32 is a dark, muted violet. Relative luminance 0.015; OKLCH L 25.2% C 0.044 H 308.6°. Best body text is #FFFFFF at 16.12:1 contrast (WCAG AA passes).

Color values

HEX#281C32
RGBrgb(40, 28, 50)
HSLhsl(273, 28%, 15%)
HSVhsv(273, 44%, 20%)
CMYKcmyk(20%, 44%, 0%, 80.4%)
CIE-LABlab(12.68, 11.25, -12.33)
CIE-LCHlch(12.68, 16.69, 312.36°)
OKLaboklab(25.18% 0.0272 -0.0341)
OKLCHoklch(25.18% 0.044 308.6)
XYZxyz(1.8659, 1.5119, 3.2105)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C32 #26321C
analogous
#1D1C32 #281C32 #321C31
triadic
#281C32 #32281C #1C3228
tetradic
#281C32 #321D1C #26321C #1C3132
square
#281C32 #321D1C #26321C #1C3132
split-complementary
#281C32 #31321C #1C321D
monochromatic
#100B14 #100B14 #281C32 #473259 #674880

Accessibility & contrast

On white

16.12
#281C32 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281C32
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C32#FFFFFF#000000##FFFFFF
##281C321.0016.121.3016.12
#FFFFFF16.121.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182033
Deuteranopia (green-blind)
#1A2131
Tritanopia (blue-blind)
#271F24
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #281c32;
/* rgb */ color: rgb(40, 28, 50);
/* oklch */ color: oklch(25.2% 0.044 308.6);
Tailwind
colors: {
  custom: {
    50: '#62586a',
    500: '#281c32',
    950: '#000000',
  },
}
SCSS
$custom: #281c32;
$custom-light: #62586a;
$custom-dark: #000000;
JSON
{
  "hex": "#281c32",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 50
  },
  "hsl": {
    "h": 272.727,
    "s": 28.205,
    "l": 15.294
  },
  "oklch": {
    "l": 0.25176,
    "c": 0.04358,
    "h": 308.6
  },
  "luminance": 0.01512
}

Semantic roles & 50–950 ramp

primary
#281C32
secondary
#536644
accent
#C5638F
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050306
muted
#79787A

Preview Lab

Preview with #281C32

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

Preview Lab → · Contrast checker → · Palette generator →

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