#281778#281778

#281778 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.152 H 280.4°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#281778
RGBrgb(40, 23, 120)
HSLhsl(251, 68%, 28%)
HSVhsv(251, 81%, 47%)
CMYKcmyk(66.7%, 80.8%, 0%, 52.9%)
CIE-LABlab(17.55, 37.21, -51.90)
CIE-LCHlch(17.55, 63.86, 305.63°)
OKLaboklab(30.58% 0.0276 -0.1498)
OKLCHoklch(30.58% 0.152 280.4)
XYZxyz(4.5706, 2.4196, 17.9918)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281778 #677817
analogous
#173778 #281778 #581778
triadic
#281778 #782817 #177828
tetradic
#281778 #781737 #677817 #177858
square
#281778 #781737 #677817 #177858
split-complementary
#281778 #785817 #377817
monochromatic
#09051A #170D45 #281778 #3921AB #4F32D8

Accessibility & contrast

On white

14.15
#281778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281778
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281778#FFFFFF#000000##FFFFFF
##2817781.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281778;
/* rgb */ color: rgb(40, 23, 120);
/* oklch */ color: oklch(30.6% 0.152 280.4);
Tailwind
colors: {
  custom: {
    50: '#6e57a0',
    500: '#281778',
    950: '#000000',
  },
}
SCSS
$custom: #281778;
$custom-light: #6e57a0;
$custom-dark: #000000;
JSON
{
  "hex": "#281778",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 250.515,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30579,
    "c": 0.15233,
    "h": 280.4
  },
  "luminance": 0.0242
}

Semantic roles & 50–950 ramp

primary
#281778
secondary
#9AAD3E
accent
#EB3DCC
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #281778

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

Preview Lab → · Contrast checker → · Palette generator →

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