#281E3A#281E3A

#281E3A is a dark, muted violet. Relative luminance 0.017; OKLCH L 26.1% C 0.052 H 299.2°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#281E3A
RGBrgb(40, 30, 58)
HSLhsl(261, 32%, 17%)
HSVhsv(261, 48%, 23%)
CMYKcmyk(31%, 48.3%, 0%, 77.3%)
CIE-LABlab(13.74, 12.18, -16.39)
CIE-LCHlch(13.74, 20.42, 306.62°)
OKLaboklab(26.13% 0.0256 -0.0458)
OKLCHoklch(26.13% 0.052 299.2)
XYZxyz(2.1029, 1.6851, 4.2166)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E3A #303A1E
analogous
#1E223A #281E3A #361E3A
triadic
#281E3A #3A281E #1E3A28
tetradic
#281E3A #3A1E22 #303A1E #1E3A36
square
#281E3A #3A1E22 #303A1E #1E3A36
split-complementary
#281E3A #3A361E #223A1E
monochromatic
#0E0A14 #0E0A14 #281E3A #443362 #60488B

Accessibility & contrast

On white

15.71
#281E3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#281E3A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281E3A
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E3A#FFFFFF#000000##FFFFFF
##281E3A1.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16233B
Deuteranopia (green-blind)
#182339
Tritanopia (blue-blind)
#252329
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #281e3a;
/* rgb */ color: rgb(40, 30, 58);
/* oklch */ color: oklch(26.1% 0.052 299.2);
Tailwind
colors: {
  custom: {
    50: '#635970',
    500: '#281e3a',
    950: '#000000',
  },
}
SCSS
$custom: #281e3a;
$custom-light: #635970;
$custom-dark: #000000;
JSON
{
  "hex": "#281e3a",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 58
  },
  "hsl": {
    "h": 261.429,
    "s": 31.818,
    "l": 17.255
  },
  "oklch": {
    "l": 0.26126,
    "c": 0.05245,
    "h": 299.2
  },
  "luminance": 0.01685
}

Semantic roles & 50–950 ramp

primary
#281E3A
secondary
#606E46
accent
#C860A3
background
#F5F5F6
surface
#EAE9EC
border
#C6C5C7
text
#050307
muted
#79787A

Preview Lab

Preview with #281E3A

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

Preview Lab → · Contrast checker → · Palette generator →

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