#281E36#281E36

#281E36 is a dark, muted violet. Relative luminance 0.016; OKLCH L 25.9% C 0.046 H 302.5°. Best body text is #FFFFFF at 15.80:1 contrast (WCAG AA passes).

Color values

HEX#281E36
RGBrgb(40, 30, 54)
HSLhsl(265, 29%, 16%)
HSVhsv(265, 44%, 21%)
CMYKcmyk(25.9%, 44.4%, 0%, 78.8%)
CIE-LABlab(13.51, 10.97, -13.91)
CIE-LCHlch(13.51, 17.72, 308.25°)
OKLaboklab(25.87% 0.0246 -0.0386)
OKLCHoklch(25.87% 0.046 302.5)
XYZxyz(2.0051, 1.6460, 3.7014)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E36 #2C361E
analogous
#1E2036 #281E36 #341E36
triadic
#281E36 #36281E #1E3628
tetradic
#281E36 #361E20 #2C361E #1E3634
square
#281E36 #361E20 #2C361E #1E3634
split-complementary
#281E36 #36341E #20361E
monochromatic
#0F0B14 #0F0B14 #281E36 #45345D #624A85

Accessibility & contrast

On white

15.80
#281E36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#281E36 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281E36
15.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E36#FFFFFF#000000##FFFFFF
##281E361.0015.801.3315.80
#FFFFFF15.801.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182237
Deuteranopia (green-blind)
#1A2335
Tritanopia (blue-blind)
#262227
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #281e36;
/* rgb */ color: rgb(40, 30, 54);
/* oklch */ color: oklch(25.9% 0.046 302.5);
Tailwind
colors: {
  custom: {
    50: '#62596d',
    500: '#281e36',
    950: '#000000',
  },
}
SCSS
$custom: #281e36;
$custom-light: #62596d;
$custom-dark: #000000;
JSON
{
  "hex": "#281e36",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 54
  },
  "hsl": {
    "h": 265,
    "s": 28.571,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25874,
    "c": 0.04579,
    "h": 302.5
  },
  "luminance": 0.01646
}

Semantic roles & 50–950 ramp

primary
#281E36
secondary
#5B6946
accent
#C5639C
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050307
muted
#79787A

Preview Lab

Preview with #281E36

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

Preview Lab → · Contrast checker → · Palette generator →

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