#281152#281152

#281152 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.110 H 293.2°. Best body text is #FFFFFF at 16.25:1 contrast (WCAG AA passes).

Color values

HEX#281152
RGBrgb(40, 17, 82)
HSLhsl(261, 66%, 19%)
HSVhsv(261, 79%, 32%)
CMYKcmyk(51.2%, 79.3%, 0%, 67.8%)
CIE-LABlab(12.36, 28.38, -35.31)
CIE-LCHlch(12.36, 45.30, 308.79°)
OKLaboklab(25.71% 0.0434 -0.1012)
OKLCHoklch(25.71% 0.11 293.2)
XYZxyz(2.5981, 1.4611, 8.1261)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281152 #3B5211
analogous
#111A52 #281152 #491152
triadic
#281152 #522811 #115228
tetradic
#281152 #52111A #3B5211 #115249
square
#281152 #52111A #3B5211 #115249
split-complementary
#281152 #524911 #1A5211
monochromatic
#0C0519 #0F061F #281152 #411C85 #5926B7

Accessibility & contrast

On white

16.25
#281152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281152
16.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281152#FFFFFF#000000##FFFFFF
##2811521.0016.251.2916.25
#FFFFFF16.251.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002154
Deuteranopia (green-blind)
#001F51
Tritanopia (blue-blind)
#1B2230
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #281152;
/* rgb */ color: rgb(40, 17, 82);
/* oklch */ color: oklch(25.7% 0.110 293.2);
Tailwind
colors: {
  custom: {
    50: '#675183',
    500: '#281152',
    950: '#000000',
  },
}
SCSS
$custom: #281152;
$custom-light: #675183;
$custom-dark: #000000;
JSON
{
  "hex": "#281152",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 261.231,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.25712,
    "c": 0.11015,
    "h": 293.2
  },
  "luminance": 0.01461
}

Semantic roles & 50–950 ramp

primary
#281152
secondary
#6C8B34
accent
#E93FAD
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #281152

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

Preview Lab → · Contrast checker → · Palette generator →

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