#281180#281180

#281180 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.8% C 0.167 H 279.7°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#281180
RGBrgb(40, 17, 128)
HSLhsl(252, 77%, 28%)
HSVhsv(252, 87%, 50%)
CMYKcmyk(68.8%, 86.7%, 0%, 49.8%)
CIE-LABlab(17.51, 42.55, -57.08)
CIE-LCHlch(17.51, 71.20, 306.70°)
OKLaboklab(30.82% 0.0281 -0.1648)
OKLCHoklch(30.82% 0.167 279.7)
XYZxyz(4.9706, 2.4101, 20.6211)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281180 #698011
analogous
#113280 #281180 #5F1180
triadic
#281180 #802811 #118028
tetradic
#281180 #801132 #698011 #11805F
square
#281180 #801132 #698011 #11805F
split-complementary
#281180 #805F11 #328011
monochromatic
#08041B #170A4A #281180 #3918B6 #4F29E3

Accessibility & contrast

On white

14.17
#281180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#281180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281180
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281180#FFFFFF#000000##FFFFFF
##2811801.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F83
Deuteranopia (green-blind)
#00277E
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #281180;
/* rgb */ color: rgb(40, 17, 128);
/* oklch */ color: oklch(30.8% 0.167 279.7);
Tailwind
colors: {
  custom: {
    50: '#7055a6',
    500: '#281180',
    950: '#000000',
  },
}
SCSS
$custom: #281180;
$custom-light: #7055a6;
$custom-dark: #000000;
JSON
{
  "hex": "#281180",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 128
  },
  "hsl": {
    "h": 252.432,
    "s": 76.552,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30824,
    "c": 0.16716,
    "h": 279.7
  },
  "luminance": 0.02411
}

Semantic roles & 50–950 ramp

primary
#281180
secondary
#9CB637
accent
#F335CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #281180

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

Preview Lab → · Contrast checker → · Palette generator →

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