#281541#281541

#281541 is a very dark, moderate violet. Relative luminance 0.014; OKLCH L 24.8% C 0.081 H 300.5°. Best body text is #FFFFFF at 16.49:1 contrast (WCAG AA passes).

Color values

HEX#281541
RGBrgb(40, 21, 65)
HSLhsl(266, 51%, 17%)
HSVhsv(266, 68%, 25%)
CMYKcmyk(38.5%, 67.7%, 0%, 74.5%)
CIE-LABlab(11.75, 20.62, -24.50)
CIE-LCHlch(11.75, 32.03, 310.09°)
OKLaboklab(24.8% 0.041 -0.0695)
OKLCHoklch(24.8% 0.081 300.5)
XYZxyz(2.0971, 1.3691, 5.1538)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281541 #2E4115
analogous
#151841 #281541 #3E1541
triadic
#281541 #412815 #154128
tetradic
#281541 #411518 #2E4115 #15413E
square
#281541 #411518 #2E4115 #15413E
split-complementary
#281541 #413E15 #184115
monochromatic
#0E0717 #0E0717 #281541 #44246F #61339E

Accessibility & contrast

On white

16.49
#281541 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#281541 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281541
16.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281541#FFFFFF#000000##FFFFFF
##2815411.0016.491.2716.49
#FFFFFF16.491.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011F42
Deuteranopia (green-blind)
#071F40
Tritanopia (blue-blind)
#231E28
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #281541;
/* rgb */ color: rgb(40, 21, 65);
/* oklch */ color: oklch(24.8% 0.081 300.5);
Tailwind
colors: {
  custom: {
    50: '#645376',
    500: '#281541',
    950: '#000000',
  },
}
SCSS
$custom: #281541;
$custom-light: #645376;
$custom-dark: #000000;
JSON
{
  "hex": "#281541",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 65
  },
  "hsl": {
    "h": 265.909,
    "s": 51.163,
    "l": 16.863
  },
  "oklch": {
    "l": 0.24802,
    "c": 0.08065,
    "h": 300.5
  },
  "luminance": 0.01369
}

Semantic roles & 50–950 ramp

primary
#281541
secondary
#5D7939
accent
#DB4D9E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050208
muted
#7A787B

Preview Lab

Preview with #281541

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

Preview Lab → · Contrast checker → · Palette generator →

#281541 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva