#281C34#281C34

#281C34 is a dark, muted violet. Relative luminance 0.015; OKLCH L 25.3% C 0.047 H 306.3°. Best body text is #FFFFFF at 16.08:1 contrast (WCAG AA passes).

Color values

HEX#281C34
RGBrgb(40, 28, 52)
HSLhsl(270, 30%, 16%)
HSVhsv(270, 46%, 20%)
CMYKcmyk(23.1%, 46.2%, 0%, 79.6%)
CIE-LABlab(12.79, 11.82, -13.60)
CIE-LCHlch(12.79, 18.02, 311.00°)
OKLaboklab(25.3% 0.0277 -0.0377)
OKLCHoklch(25.3% 0.047 306.3)
XYZxyz(1.9100, 1.5296, 3.4428)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C34 #28341C
analogous
#1C1C34 #281C34 #341C34
triadic
#281C34 #34281C #1C3428
tetradic
#281C34 #341C1C #28341C #1C3434
square
#281C34 #341C1C #28341C #1C3434
split-complementary
#281C34 #34341C #1C341C
monochromatic
#0F0B14 #0F0B14 #281C34 #47315C #654784

Accessibility & contrast

On white

16.08
#281C34 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#281C34 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281C34
16.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C34#FFFFFF#000000##FFFFFF
##281C341.0016.081.3116.08
#FFFFFF16.081.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172135
Deuteranopia (green-blind)
#192133
Tritanopia (blue-blind)
#262025
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #281c34;
/* rgb */ color: rgb(40, 28, 52);
/* oklch */ color: oklch(25.3% 0.047 306.3);
Tailwind
colors: {
  custom: {
    50: '#62586b',
    500: '#281c34',
    950: '#000000',
  },
}
SCSS
$custom: #281c34;
$custom-light: #62586b;
$custom-dark: #000000;
JSON
{
  "hex": "#281c34",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 52
  },
  "hsl": {
    "h": 270,
    "s": 30,
    "l": 15.686
  },
  "oklch": {
    "l": 0.25297,
    "c": 0.04679,
    "h": 306.3
  },
  "luminance": 0.0153
}

Semantic roles & 50–950 ramp

primary
#281C34
secondary
#566844
accent
#C66294
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050306
muted
#79787A

Preview Lab

Preview with #281C34

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

Preview Lab → · Contrast checker → · Palette generator →

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