#281179#281179

#281179 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 30.0% C 0.159 H 281.1°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#281179
RGBrgb(40, 17, 121)
HSLhsl(253, 75%, 27%)
HSVhsv(253, 86%, 47%)
CMYKcmyk(66.9%, 86%, 0%, 52.5%)
CIE-LABlab(16.66, 40.44, -54.02)
CIE-LCHlch(16.66, 67.48, 306.82°)
OKLaboklab(30% 0.0306 -0.1559)
OKLCHoklch(30% 0.159 281.1)
XYZxyz(4.5256, 2.2321, 18.2778)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281179 #627911
analogous
#112E79 #281179 #5C1179
triadic
#281179 #792811 #117928
tetradic
#281179 #79112E #627911 #11795C
square
#281179 #79112E #627911 #11795C
split-complementary
#281179 #795C11 #2E7911
monochromatic
#09041B #160943 #281179 #3A19AF #4E24E0

Accessibility & contrast

On white

14.52
#281179 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#281179 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281179
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281179#FFFFFF#000000##FFFFFF
##2811791.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7C
Deuteranopia (green-blind)
#002577
Tritanopia (blue-blind)
#003246
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #281179;
/* rgb */ color: rgb(40, 17, 121);
/* oklch */ color: oklch(30.0% 0.159 281.1);
Tailwind
colors: {
  custom: {
    50: '#6f54a1',
    500: '#281179',
    950: '#000000',
  },
}
SCSS
$custom: #281179;
$custom-light: #6f54a1;
$custom-dark: #000000;
JSON
{
  "hex": "#281179",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 121
  },
  "hsl": {
    "h": 253.269,
    "s": 75.362,
    "l": 27.059
  },
  "oklch": {
    "l": 0.29996,
    "c": 0.15884,
    "h": 281.1
  },
  "luminance": 0.02232
}

Semantic roles & 50–950 ramp

primary
#281179
secondary
#95B036
accent
#F236C8
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #281179

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

Preview Lab → · Contrast checker → · Palette generator →

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