#281170#281170

#281170 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 29.0% C 0.148 H 283.2°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#281170
RGBrgb(40, 17, 112)
HSLhsl(255, 74%, 25%)
HSVhsv(255, 85%, 44%)
CMYKcmyk(64.3%, 84.8%, 0%, 56.1%)
CIE-LABlab(15.60, 37.70, -49.96)
CIE-LCHlch(15.60, 62.59, 307.04°)
OKLaboklab(28.95% 0.0338 -0.1441)
OKLCHoklch(28.95% 0.148 283.2)
XYZxyz(3.9992, 2.0216, 15.5056)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281170 #597011
analogous
#112A70 #281170 #571170
triadic
#281170 #702811 #117028
tetradic
#281170 #70112A #597011 #117057
square
#281170 #70112A #597011 #117057
split-complementary
#281170 #705711 #2A7011
monochromatic
#09041B #15093B #281170 #3B19A5 #4E21DA

Accessibility & contrast

On white

14.95
#281170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#281170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281170
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281170#FFFFFF#000000##FFFFFF
##2811701.0014.951.4014.95
#FFFFFF14.951.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A73
Deuteranopia (green-blind)
#00246E
Tritanopia (blue-blind)
#002E41
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #281170;
/* rgb */ color: rgb(40, 17, 112);
/* oklch */ color: oklch(29.0% 0.148 283.2);
Tailwind
colors: {
  custom: {
    50: '#6d539a',
    500: '#281170',
    950: '#000000',
  },
}
SCSS
$custom: #281170;
$custom-light: #6d539a;
$custom-dark: #000000;
JSON
{
  "hex": "#281170",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 112
  },
  "hsl": {
    "h": 254.526,
    "s": 73.643,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28953,
    "c": 0.14798,
    "h": 283.2
  },
  "luminance": 0.02022
}

Semantic roles & 50–950 ramp

primary
#281170
secondary
#8CA735
accent
#F037C4
background
#F7F4F9
surface
#EDE7F2
border
#C8C3CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #281170

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

Preview Lab → · Contrast checker → · Palette generator →

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