#281D34#281D34

#281D34 is a dark, muted violet. Relative luminance 0.016; OKLCH L 25.5% C 0.045 H 305.4°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#281D34
RGBrgb(40, 29, 52)
HSLhsl(269, 28%, 16%)
HSVhsv(269, 44%, 20%)
CMYKcmyk(23.1%, 44.2%, 0%, 79.6%)
CIE-LABlab(13.09, 11.10, -13.13)
CIE-LCHlch(13.09, 17.19, 310.21°)
OKLaboklab(25.52% 0.0259 -0.0364)
OKLCHoklch(25.52% 0.045 305.4)
XYZxyz(1.9341, 1.5778, 3.4508)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D34 #29341D
analogous
#1D1D34 #281D34 #331D34
triadic
#281D34 #34281D #1D3428
tetradic
#281D34 #341D1D #29341D #1D3433
square
#281D34 #341D1D #29341D #1D3433
split-complementary
#281D34 #34331D #1D341D
monochromatic
#0F0B14 #0F0B14 #281D34 #46335B #644983

Accessibility & contrast

On white

15.96
#281D34 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#281D34 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281D34
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D34#FFFFFF#000000##FFFFFF
##281D341.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182135
Deuteranopia (green-blind)
#1A2233
Tritanopia (blue-blind)
#262126
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #281d34;
/* rgb */ color: rgb(40, 29, 52);
/* oklch */ color: oklch(25.5% 0.045 305.4);
Tailwind
colors: {
  custom: {
    50: '#62596b',
    500: '#281d34',
    950: '#000000',
  },
}
SCSS
$custom: #281d34;
$custom-light: #62596b;
$custom-dark: #000000;
JSON
{
  "hex": "#281d34",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 52
  },
  "hsl": {
    "h": 268.696,
    "s": 28.395,
    "l": 15.882
  },
  "oklch": {
    "l": 0.25524,
    "c": 0.04463,
    "h": 305.4
  },
  "luminance": 0.01578
}

Semantic roles & 50–950 ramp

primary
#281D34
secondary
#576845
accent
#C56396
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050306
muted
#79787A

Preview Lab

Preview with #281D34

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

Preview Lab → · Contrast checker → · Palette generator →

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