#281B38#281B38

#281B38 is a dark, muted violet. Relative luminance 0.015; OKLCH L 25.3% C 0.055 H 303.4°. Best body text is #FFFFFF at 16.10:1 contrast (WCAG AA passes).

Color values

HEX#281B38
RGBrgb(40, 27, 56)
HSLhsl(267, 35%, 16%)
HSVhsv(267, 52%, 22%)
CMYKcmyk(28.6%, 51.8%, 0%, 78%)
CIE-LABlab(12.74, 13.72, -16.55)
CIE-LCHlch(12.74, 21.50, 309.67°)
OKLaboklab(25.33% 0.0304 -0.0462)
OKLCHoklch(25.33% 0.055 303.4)
XYZxyz(1.9807, 1.5205, 3.9298)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B38 #2B381B
analogous
#1B1D38 #281B38 #371B38
triadic
#281B38 #38281B #1B3828
tetradic
#281B38 #381B1D #2B381B #1B3837
square
#281B38 #381B1D #2B381B #1B3837
split-complementary
#281B38 #38371B #1D381B
monochromatic
#0F0A15 #0F0A15 #281B38 #452F61 #63438B

Accessibility & contrast

On white

16.10
#281B38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281B38
16.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B38#FFFFFF#000000##FFFFFF
##281B381.0016.101.3016.10
#FFFFFF16.101.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132139
Deuteranopia (green-blind)
#162137
Tritanopia (blue-blind)
#252026
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #281b38;
/* rgb */ color: rgb(40, 27, 56);
/* oklch */ color: oklch(25.3% 0.055 303.4);
Tailwind
colors: {
  custom: {
    50: '#63576e',
    500: '#281b38',
    950: '#000000',
  },
}
SCSS
$custom: #281b38;
$custom-light: #63576e;
$custom-dark: #000000;
JSON
{
  "hex": "#281b38",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 56
  },
  "hsl": {
    "h": 266.897,
    "s": 34.94,
    "l": 16.275
  },
  "oklch": {
    "l": 0.25331,
    "c": 0.05535,
    "h": 303.4
  },
  "luminance": 0.01521
}

Semantic roles & 50–950 ramp

primary
#281B38
secondary
#5A6D42
accent
#CB5D9A
background
#F5F5F6
surface
#EAE9EC
border
#C6C5C7
text
#050307
muted
#79787A

Preview Lab

Preview with #281B38

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

Preview Lab → · Contrast checker → · Palette generator →

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