#281575#281575

#281575 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.150 H 281.4°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#281575
RGBrgb(40, 21, 117)
HSLhsl(252, 70%, 27%)
HSVhsv(252, 82%, 46%)
CMYKcmyk(65.8%, 82.1%, 0%, 54.1%)
CIE-LABlab(16.85, 37.29, -51.13)
CIE-LCHlch(16.85, 63.28, 306.10°)
OKLaboklab(29.99% 0.0298 -0.1475)
OKLCHoklch(29.99% 0.15 281.4)
XYZxyz(4.3531, 2.2715, 17.0352)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281575 #627515
analogous
#153275 #281575 #581575
triadic
#281575 #752815 #157528
tetradic
#281575 #751532 #627515 #157558
square
#281575 #751532 #627515 #157558
split-complementary
#281575 #755815 #327515
monochromatic
#09051A #160C41 #281575 #3A1EA9 #4E2BD9

Accessibility & contrast

On white

14.44
#281575 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281575
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281575#FFFFFF#000000##FFFFFF
##2815751.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D78
Deuteranopia (green-blind)
#002673
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #281575;
/* rgb */ color: rgb(40, 21, 117);
/* oklch */ color: oklch(30.0% 0.150 281.4);
Tailwind
colors: {
  custom: {
    50: '#6e569e',
    500: '#281575',
    950: '#000000',
  },
}
SCSS
$custom: #281575;
$custom-light: #6e569e;
$custom-dark: #000000;
JSON
{
  "hex": "#281575",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 117
  },
  "hsl": {
    "h": 251.875,
    "s": 69.565,
    "l": 27.059
  },
  "oklch": {
    "l": 0.29991,
    "c": 0.15049,
    "h": 281.4
  },
  "luminance": 0.02272
}

Semantic roles & 50–950 ramp

primary
#281575
secondary
#95AB3B
accent
#EC3BC9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #281575

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

Preview Lab → · Contrast checker → · Palette generator →

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