#281159#281159

#281159 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.119 H 290.4°. Best body text is #FFFFFF at 15.97:1 contrast (WCAG AA passes).

Color values

HEX#281159
RGBrgb(40, 17, 89)
HSLhsl(259, 68%, 21%)
HSVhsv(259, 81%, 35%)
CMYKcmyk(55.1%, 80.9%, 0%, 65.1%)
CIE-LABlab(13.07, 30.56, -38.91)
CIE-LCHlch(13.07, 49.47, 308.15°)
OKLaboklab(26.43% 0.0415 -0.1118)
OKLCHoklch(26.43% 0.119 290.4)
XYZxyz(2.8782, 1.5732, 9.6013)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281159 #425911
analogous
#111E59 #281159 #4C1159
triadic
#281159 #592811 #115928
tetradic
#281159 #59111E #425911 #11594C
square
#281159 #59111E #425911 #11594C
split-complementary
#281159 #594C11 #1E5911
monochromatic
#0C051A #110726 #281159 #3F1B8C #5625C0

Accessibility & contrast

On white

15.97
#281159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#281159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281159
15.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281159#FFFFFF#000000##FFFFFF
##2811591.0015.971.3115.97
#FFFFFF15.971.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235B
Deuteranopia (green-blind)
#002058
Tritanopia (blue-blind)
#172534
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #281159;
/* rgb */ color: rgb(40, 17, 89);
/* oklch */ color: oklch(26.4% 0.119 290.4);
Tailwind
colors: {
  custom: {
    50: '#685289',
    500: '#281159',
    950: '#000000',
  },
}
SCSS
$custom: #281159;
$custom-light: #685289;
$custom-dark: #000000;
JSON
{
  "hex": "#281159",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 89
  },
  "hsl": {
    "h": 259.167,
    "s": 67.925,
    "l": 20.784
  },
  "oklch": {
    "l": 0.26427,
    "c": 0.11922,
    "h": 290.4
  },
  "luminance": 0.01573
}

Semantic roles & 50–950 ramp

primary
#281159
secondary
#749234
accent
#EB3DB3
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #281159

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

Preview Lab → · Contrast checker → · Palette generator →

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