#281151#281151

#281151 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.6% C 0.109 H 293.7°. Best body text is #FFFFFF at 16.29:1 contrast (WCAG AA passes).

Color values

HEX#281151
RGBrgb(40, 17, 81)
HSLhsl(262, 65%, 19%)
HSVhsv(262, 79%, 32%)
CMYKcmyk(50.6%, 79%, 0%, 68.2%)
CIE-LABlab(12.26, 28.07, -34.79)
CIE-LCHlch(12.26, 44.70, 308.90°)
OKLaboklab(25.61% 0.0437 -0.0997)
OKLCHoklch(25.61% 0.109 293.7)
XYZxyz(2.5603, 1.4460, 7.9272)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281151 #3A5111
analogous
#111A51 #281151 #481151
triadic
#281151 #512811 #115128
tetradic
#281151 #51111A #3A5111 #115148
square
#281151 #51111A #3A5111 #115148
split-complementary
#281151 #514811 #1A5111
monochromatic
#0C0519 #0F061E #281151 #411C84 #5A26B6

Accessibility & contrast

On white

16.29
#281151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#281151 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281151
16.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281151#FFFFFF#000000##FFFFFF
##2811511.0016.291.2916.29
#FFFFFF16.291.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002153
Deuteranopia (green-blind)
#001F50
Tritanopia (blue-blind)
#1C222F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #281151;
/* rgb */ color: rgb(40, 17, 81);
/* oklch */ color: oklch(25.6% 0.109 293.7);
Tailwind
colors: {
  custom: {
    50: '#675182',
    500: '#281151',
    950: '#000000',
  },
}
SCSS
$custom: #281151;
$custom-light: #675182;
$custom-dark: #000000;
JSON
{
  "hex": "#281151",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 81
  },
  "hsl": {
    "h": 261.563,
    "s": 65.306,
    "l": 19.216
  },
  "oklch": {
    "l": 0.25612,
    "c": 0.10883,
    "h": 293.7
  },
  "luminance": 0.01446
}

Semantic roles & 50–950 ramp

primary
#281151
secondary
#6B8A34
accent
#E840AC
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020A
muted
#7A787C

Preview Lab

Preview with #281151

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

Preview Lab → · Contrast checker → · Palette generator →

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