#281776#281776

#281776 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.150 H 280.9°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#281776
RGBrgb(40, 23, 118)
HSLhsl(251, 67%, 28%)
HSVhsv(251, 81%, 46%)
CMYKcmyk(66.1%, 80.5%, 0%, 53.7%)
CIE-LABlab(17.33, 36.56, -50.99)
CIE-LCHlch(17.33, 62.74, 305.64°)
OKLaboklab(30.36% 0.0282 -0.1471)
OKLCHoklch(30.36% 0.15 280.9)
XYZxyz(4.4504, 2.3716, 17.3593)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281776 #657617
analogous
#173576 #281776 #581776
triadic
#281776 #762817 #177628
tetradic
#281776 #761735 #657617 #177658
square
#281776 #761735 #657617 #177658
split-complementary
#281776 #765817 #357617
monochromatic
#09051A #170D43 #281776 #3921A9 #4E31D7

Accessibility & contrast

On white

14.24
#281776 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#281776 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281776
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281776#FFFFFF#000000##FFFFFF
##2817761.0014.241.4714.24
#FFFFFF14.241.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E79
Deuteranopia (green-blind)
#002774
Tritanopia (blue-blind)
#003346
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #281776;
/* rgb */ color: rgb(40, 23, 118);
/* oklch */ color: oklch(30.4% 0.150 280.9);
Tailwind
colors: {
  custom: {
    50: '#6e579f',
    500: '#281776',
    950: '#000000',
  },
}
SCSS
$custom: #281776;
$custom-light: #6e579f;
$custom-dark: #000000;
JSON
{
  "hex": "#281776",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 118
  },
  "hsl": {
    "h": 250.737,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30356,
    "c": 0.14982,
    "h": 280.9
  },
  "luminance": 0.02372
}

Semantic roles & 50–950 ramp

primary
#281776
secondary
#98AB3E
accent
#EA3ECB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #281776

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

Preview Lab → · Contrast checker → · Palette generator →

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