#281A34#281A34

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

Color values

HEX#281A34
RGBrgb(40, 26, 52)
HSLhsl(272, 33%, 15%)
HSVhsv(272, 50%, 20%)
CMYKcmyk(23.1%, 50%, 0%, 79.6%)
CIE-LABlab(12.21, 13.26, -14.52)
CIE-LCHlch(12.21, 19.66, 312.40°)
OKLaboklab(24.85% 0.0314 -0.0403)
OKLCHoklch(24.85% 0.051 307.9)
XYZxyz(1.8642, 1.4379, 3.4275)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A34 #26341A
analogous
#1B1A34 #281A34 #341A33
triadic
#281A34 #34281A #1A3428
tetradic
#281A34 #341B1A #26341A #1A3334
square
#281A34 #341B1A #26341A #1A3334
split-complementary
#281A34 #33341A #1A341B
monochromatic
#100A14 #100A14 #281A34 #472E5D #674386

Accessibility & contrast

On white

16.31
#281A34 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281A34
16.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A34#FFFFFF#000000##FFFFFF
##281A341.0016.311.2916.31
#FFFFFF16.311.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#141F35
Deuteranopia (green-blind)
#182033
Tritanopia (blue-blind)
#261E24
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #281a34;
/* rgb */ color: rgb(40, 26, 52);
/* oklch */ color: oklch(24.9% 0.051 307.9);
Tailwind
colors: {
  custom: {
    50: '#62566b',
    500: '#281a34',
    950: '#000000',
  },
}
SCSS
$custom: #281a34;
$custom-light: #62566b;
$custom-dark: #000000;
JSON
{
  "hex": "#281a34",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 52
  },
  "hsl": {
    "h": 272.308,
    "s": 33.333,
    "l": 15.294
  },
  "oklch": {
    "l": 0.24854,
    "c": 0.05111,
    "h": 307.9
  },
  "luminance": 0.01438
}

Semantic roles & 50–950 ramp

primary
#281A34
secondary
#536941
accent
#C95E90
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050306
muted
#79787A

Preview Lab

Preview with #281A34

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

Preview Lab → · Contrast checker → · Palette generator →

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