#281B36#281B36

#281B36 is a dark, muted violet. Relative luminance 0.015; OKLCH L 25.2% C 0.052 H 305.1°. Best body text is #FFFFFF at 16.15:1 contrast (WCAG AA passes).

Color values

HEX#281B36
RGBrgb(40, 27, 54)
HSLhsl(269, 33%, 16%)
HSVhsv(269, 50%, 21%)
CMYKcmyk(25.9%, 50%, 0%, 78.8%)
CIE-LABlab(12.62, 13.13, -15.31)
CIE-LCHlch(12.62, 20.17, 310.61°)
OKLaboklab(25.2% 0.03 -0.0426)
OKLCHoklch(25.2% 0.052 305.1)
XYZxyz(1.9327, 1.5013, 3.6773)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B36 #29361B
analogous
#1B1B36 #281B36 #351B36
triadic
#281B36 #36281B #1B3628
tetradic
#281B36 #361B1B #29361B #1B3635
square
#281B36 #361B1B #29361B #1B3635
split-complementary
#281B36 #36351B #1B361B
monochromatic
#0F0A14 #0F0A14 #281B36 #462F5F #644488

Accessibility & contrast

On white

16.15
#281B36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#281B36 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281B36
16.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B36#FFFFFF#000000##FFFFFF
##281B361.0016.151.3016.15
#FFFFFF16.151.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142037
Deuteranopia (green-blind)
#172135
Tritanopia (blue-blind)
#261F25
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #281b36;
/* rgb */ color: rgb(40, 27, 54);
/* oklch */ color: oklch(25.2% 0.052 305.1);
Tailwind
colors: {
  custom: {
    50: '#62576d',
    500: '#281b36',
    950: '#000000',
  },
}
SCSS
$custom: #281b36;
$custom-light: #62576d;
$custom-dark: #000000;
JSON
{
  "hex": "#281b36",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 54
  },
  "hsl": {
    "h": 268.889,
    "s": 33.333,
    "l": 15.882
  },
  "oklch": {
    "l": 0.252,
    "c": 0.05215,
    "h": 305.1
  },
  "luminance": 0.01501
}

Semantic roles & 50–950 ramp

primary
#281B36
secondary
#576B42
accent
#C95E96
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050307
muted
#79787A

Preview Lab

Preview with #281B36

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

Preview Lab → · Contrast checker → · Palette generator →

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