#281678#281678

#281678 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.153 H 280.6°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#281678
RGBrgb(40, 22, 120)
HSLhsl(251, 69%, 28%)
HSVhsv(251, 82%, 47%)
CMYKcmyk(66.7%, 81.7%, 0%, 52.9%)
CIE-LABlab(17.37, 37.73, -52.20)
CIE-LCHlch(17.37, 64.41, 305.86°)
OKLaboklab(30.45% 0.0282 -0.1507)
OKLCHoklch(30.45% 0.153 280.6)
XYZxyz(4.5511, 2.3806, 17.9853)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281678 #667816
analogous
#163578 #281678 #591678
triadic
#281678 #782816 #167828
tetradic
#281678 #781635 #667816 #167859
square
#281678 #781635 #667816 #167859
split-complementary
#281678 #785916 #357816
monochromatic
#09051A #170D44 #281678 #391FAC #4F2FD9

Accessibility & contrast

On white

14.23
#281678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#281678 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281678
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281678#FFFFFF#000000##FFFFFF
##2816781.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7B
Deuteranopia (green-blind)
#002776
Tritanopia (blue-blind)
#003347
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #281678;
/* rgb */ color: rgb(40, 22, 120);
/* oklch */ color: oklch(30.5% 0.153 280.6);
Tailwind
colors: {
  custom: {
    50: '#6e56a0',
    500: '#281678',
    950: '#000000',
  },
}
SCSS
$custom: #281678;
$custom-light: #6e56a0;
$custom-dark: #000000;
JSON
{
  "hex": "#281678",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 120
  },
  "hsl": {
    "h": 251.02,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30453,
    "c": 0.15329,
    "h": 280.6
  },
  "luminance": 0.02381
}

Semantic roles & 50–950 ramp

primary
#281678
secondary
#99AD3C
accent
#EC3CCC
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #281678

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

Preview Lab → · Contrast checker → · Palette generator →

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