#281B35#281B35

#281B35 is a dark, muted violet. Relative luminance 0.015; OKLCH L 25.1% C 0.051 H 306.1°. Best body text is #FFFFFF at 16.17:1 contrast (WCAG AA passes).

Color values

HEX#281B35
RGBrgb(40, 27, 53)
HSLhsl(270, 33%, 16%)
HSVhsv(270, 49%, 21%)
CMYKcmyk(24.5%, 49.1%, 0%, 79.2%)
CIE-LABlab(12.56, 12.83, -14.69)
CIE-LCHlch(12.56, 19.50, 311.15°)
OKLaboklab(25.14% 0.0298 -0.0408)
OKLCHoklch(25.14% 0.051 306.1)
XYZxyz(1.9095, 1.4920, 3.5549)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B35 #28351B
analogous
#1B1B35 #281B35 #351B35
triadic
#281B35 #35281B #1B3528
tetradic
#281B35 #351B1B #28351B #1B3535
square
#281B35 #351B1B #28351B #1B3535
split-complementary
#281B35 #35351B #1B351B
monochromatic
#0F0A14 #0F0A14 #281B35 #47305E #654486

Accessibility & contrast

On white

16.17
#281B35 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281B35
16.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B35#FFFFFF#000000##FFFFFF
##281B351.0016.171.3016.17
#FFFFFF16.171.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281b35;
/* rgb */ color: rgb(40, 27, 53);
/* oklch */ color: oklch(25.1% 0.051 306.1);
Tailwind
colors: {
  custom: {
    50: '#62576c',
    500: '#281b35',
    950: '#000000',
  },
}
SCSS
$custom: #281b35;
$custom-light: #62576c;
$custom-dark: #000000;
JSON
{
  "hex": "#281b35",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 53
  },
  "hsl": {
    "h": 270,
    "s": 32.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.25136,
    "c": 0.05055,
    "h": 306.1
  },
  "luminance": 0.01492
}

Semantic roles & 50–950 ramp

primary
#281B35
secondary
#566942
accent
#C95F94
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050307
muted
#79787A

Preview Lab

Preview with #281B35

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

Preview Lab → · Contrast checker → · Palette generator →

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