#281A35#281A35

#281A35 is a very dark, muted violet. Relative luminance 0.014; OKLCH L 24.9% C 0.053 H 306.9°. Best body text is #FFFFFF at 16.29:1 contrast (WCAG AA passes).

Color values

HEX#281A35
RGBrgb(40, 26, 53)
HSLhsl(271, 34%, 15%)
HSVhsv(271, 51%, 21%)
CMYKcmyk(24.5%, 50.9%, 0%, 79.2%)
CIE-LABlab(12.27, 13.55, -15.14)
CIE-LCHlch(12.27, 20.32, 311.82°)
OKLaboklab(24.92% 0.0316 -0.0421)
OKLCHoklch(24.92% 0.053 306.9)
XYZxyz(1.8869, 1.4470, 3.5474)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A35 #27351A
analogous
#1A1A35 #281A35 #351A34
triadic
#281A35 #35281A #1A3528
tetradic
#281A35 #351A1A #27351A #1A3435
square
#281A35 #351A1A #27351A #1A3435
split-complementary
#281A35 #34351A #1A351A
monochromatic
#0F0A15 #0F0A15 #281A35 #472E5E #664287

Accessibility & contrast

On white

16.29
#281A35 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#281A35 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281A35
16.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A35#FFFFFF#000000##FFFFFF
##281A351.0016.291.2916.29
#FFFFFF16.291.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142036
Deuteranopia (green-blind)
#172034
Tritanopia (blue-blind)
#261E24
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #281a35;
/* rgb */ color: rgb(40, 26, 53);
/* oklch */ color: oklch(24.9% 0.053 306.9);
Tailwind
colors: {
  custom: {
    50: '#62566c',
    500: '#281a35',
    950: '#000000',
  },
}
SCSS
$custom: #281a35;
$custom-light: #62566c;
$custom-dark: #000000;
JSON
{
  "hex": "#281a35",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 53
  },
  "hsl": {
    "h": 271.111,
    "s": 34.177,
    "l": 15.49
  },
  "oklch": {
    "l": 0.24918,
    "c": 0.05268,
    "h": 306.9
  },
  "luminance": 0.01447
}

Semantic roles & 50–950 ramp

primary
#281A35
secondary
#556A41
accent
#CA5E92
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050307
muted
#79787A

Preview Lab

Preview with #281A35

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

Preview Lab → · Contrast checker → · Palette generator →

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