#281A36#281A36

#281A36 is a very dark, muted violet. Relative luminance 0.015; OKLCH L 25.0% C 0.054 H 305.9°. Best body text is #FFFFFF at 16.26:1 contrast (WCAG AA passes).

Color values

HEX#281A36
RGBrgb(40, 26, 54)
HSLhsl(270, 35%, 16%)
HSVhsv(270, 52%, 21%)
CMYKcmyk(25.9%, 51.9%, 0%, 78.8%)
CIE-LABlab(12.33, 13.84, -15.76)
CIE-LCHlch(12.33, 20.98, 311.28°)
OKLaboklab(24.98% 0.0318 -0.044)
OKLCHoklch(24.98% 0.054 305.9)
XYZxyz(1.9102, 1.4563, 3.6698)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A36 #28361A
analogous
#1A1A36 #281A36 #361A36
triadic
#281A36 #36281A #1A3628
tetradic
#281A36 #361A1A #28361A #1A3636
square
#281A36 #361A1A #28361A #1A3636
split-complementary
#281A36 #36361A #1A361A
monochromatic
#0F0A15 #0F0A15 #281A36 #472E5F #654289

Accessibility & contrast

On white

16.26
#281A36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281A36
16.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A36#FFFFFF#000000##FFFFFF
##281A361.0016.261.2916.26
#FFFFFF16.261.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132037
Deuteranopia (green-blind)
#162035
Tritanopia (blue-blind)
#261F25
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #281a36;
/* rgb */ color: rgb(40, 26, 54);
/* oklch */ color: oklch(25.0% 0.054 305.9);
Tailwind
colors: {
  custom: {
    50: '#63566d',
    500: '#281a36',
    950: '#000000',
  },
}
SCSS
$custom: #281a36;
$custom-light: #63566d;
$custom-dark: #000000;
JSON
{
  "hex": "#281a36",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 54
  },
  "hsl": {
    "h": 270,
    "s": 35,
    "l": 15.686
  },
  "oklch": {
    "l": 0.24983,
    "c": 0.05425,
    "h": 305.9
  },
  "luminance": 0.01456
}

Semantic roles & 50–950 ramp

primary
#281A36
secondary
#566B41
accent
#CB5D94
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050307
muted
#79787A

Preview Lab

Preview with #281A36

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

Preview Lab → · Contrast checker → · Palette generator →

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