#281C35#281C35

#281C35 is a dark, muted violet. Relative luminance 0.015; OKLCH L 25.4% C 0.048 H 305.3°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#281C35
RGBrgb(40, 28, 53)
HSLhsl(269, 31%, 16%)
HSVhsv(269, 47%, 21%)
CMYKcmyk(24.5%, 47.2%, 0%, 79.2%)
CIE-LABlab(12.85, 12.11, -14.22)
CIE-LCHlch(12.85, 18.68, 310.42°)
OKLaboklab(25.36% 0.028 -0.0395)
OKLCHoklch(25.36% 0.048 305.3)
XYZxyz(1.9328, 1.5387, 3.5626)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C35 #29351C
analogous
#1C1C35 #281C35 #341C35
triadic
#281C35 #35281C #1C3528
tetradic
#281C35 #351C1C #29351C #1C3534
square
#281C35 #351C1C #29351C #1C3534
split-complementary
#281C35 #35341C #1C351C
monochromatic
#0F0B14 #0F0B14 #281C35 #46315D #644685

Accessibility & contrast

On white

16.06
#281C35 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281C35
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C35#FFFFFF#000000##FFFFFF
##281C351.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162136
Deuteranopia (green-blind)
#192134
Tritanopia (blue-blind)
#262026
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #281c35;
/* rgb */ color: rgb(40, 28, 53);
/* oklch */ color: oklch(25.4% 0.048 305.3);
Tailwind
colors: {
  custom: {
    50: '#62586c',
    500: '#281c35',
    950: '#000000',
  },
}
SCSS
$custom: #281c35;
$custom-light: #62586c;
$custom-dark: #000000;
JSON
{
  "hex": "#281c35",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 53
  },
  "hsl": {
    "h": 268.8,
    "s": 30.864,
    "l": 15.882
  },
  "oklch": {
    "l": 0.25359,
    "c": 0.04841,
    "h": 305.3
  },
  "luminance": 0.01539
}

Semantic roles & 50–950 ramp

primary
#281C35
secondary
#576944
accent
#C76196
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050307
muted
#79787A

Preview Lab

Preview with #281C35

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

Preview Lab → · Contrast checker → · Palette generator →

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