#281878#281878

#281878 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.151 H 280.3°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#281878
RGBrgb(40, 24, 120)
HSLhsl(250, 67%, 28%)
HSVhsv(250, 80%, 47%)
CMYKcmyk(66.7%, 80%, 0%, 52.9%)
CIE-LABlab(17.74, 36.67, -51.60)
CIE-LCHlch(17.74, 63.30, 305.40°)
OKLaboklab(30.71% 0.027 -0.1489)
OKLCHoklch(30.71% 0.151 280.3)
XYZxyz(4.5908, 2.4601, 17.9986)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281878 #687818
analogous
#183878 #281878 #581878
triadic
#281878 #782818 #187828
tetradic
#281878 #781838 #687818 #187858
square
#281878 #781838 #687818 #187858
split-complementary
#281878 #785818 #387818
monochromatic
#08051A #170E45 #281878 #3922AB #4F34D6

Accessibility & contrast

On white

14.08
#281878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#281878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281878
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281878#FFFFFF#000000##FFFFFF
##2818781.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7B
Deuteranopia (green-blind)
#002876
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #281878;
/* rgb */ color: rgb(40, 24, 120);
/* oklch */ color: oklch(30.7% 0.151 280.3);
Tailwind
colors: {
  custom: {
    50: '#6e58a0',
    500: '#281878',
    950: '#000000',
  },
}
SCSS
$custom: #281878;
$custom-light: #6e58a0;
$custom-dark: #000000;
JSON
{
  "hex": "#281878",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 250,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30709,
    "c": 0.15135,
    "h": 280.3
  },
  "luminance": 0.0246
}

Semantic roles & 50–950 ramp

primary
#281878
secondary
#9BAD3F
accent
#EA3ECD
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #281878

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

Preview Lab → · Contrast checker → · Palette generator →

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