#281577#281577

#281577 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.153 H 281.0°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#281577
RGBrgb(40, 21, 119)
HSLhsl(252, 70%, 27%)
HSVhsv(252, 82%, 47%)
CMYKcmyk(66.4%, 82.4%, 0%, 53.3%)
CIE-LABlab(17.08, 37.92, -52.04)
CIE-LCHlch(17.08, 64.39, 306.08°)
OKLaboklab(30.22% 0.0291 -0.1502)
OKLCHoklch(30.22% 0.153 281)
XYZxyz(4.4720, 2.3190, 17.6611)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281577 #647715
analogous
#153377 #281577 #591577
triadic
#281577 #772815 #157728
tetradic
#281577 #771533 #647715 #157759
square
#281577 #771533 #647715 #157759
split-complementary
#281577 #775915 #337715
monochromatic
#09051A #170C43 #281577 #391EAB #4E2DDA

Accessibility & contrast

On white

14.35
#281577 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#281577 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281577
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281577#FFFFFF#000000##FFFFFF
##2815771.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7A
Deuteranopia (green-blind)
#002675
Tritanopia (blue-blind)
#003346
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #281577;
/* rgb */ color: rgb(40, 21, 119);
/* oklch */ color: oklch(30.2% 0.153 281.0);
Tailwind
colors: {
  custom: {
    50: '#6e569f',
    500: '#281577',
    950: '#000000',
  },
}
SCSS
$custom: #281577;
$custom-light: #6e569f;
$custom-dark: #000000;
JSON
{
  "hex": "#281577",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 119
  },
  "hsl": {
    "h": 251.633,
    "s": 70,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30217,
    "c": 0.15298,
    "h": 281
  },
  "luminance": 0.02319
}

Semantic roles & 50–950 ramp

primary
#281577
secondary
#97AD3B
accent
#ED3BCA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #281577

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

Preview Lab → · Contrast checker → · Palette generator →

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