#281876#281876

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

Color values

HEX#281876
RGBrgb(40, 24, 118)
HSLhsl(250, 66%, 28%)
HSVhsv(250, 80%, 46%)
CMYKcmyk(66.1%, 79.7%, 0%, 53.7%)
CIE-LABlab(17.52, 36.02, -50.68)
CIE-LCHlch(17.52, 62.17, 305.41°)
OKLaboklab(30.49% 0.0276 -0.1462)
OKLCHoklch(30.49% 0.149 280.7)
XYZxyz(4.4707, 2.4120, 17.3660)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281876 #667618
analogous
#183776 #281876 #571876
triadic
#281876 #762818 #187628
tetradic
#281876 #761837 #667618 #187657
square
#281876 #761837 #667618 #187657
split-complementary
#281876 #765718 #377618
monochromatic
#090519 #170E43 #281876 #3922A9 #4F33D5

Accessibility & contrast

On white

14.17
#281876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281876
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281876#FFFFFF#000000##FFFFFF
##2818761.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.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: #281876;
/* rgb */ color: rgb(40, 24, 118);
/* oklch */ color: oklch(30.5% 0.149 280.7);
Tailwind
colors: {
  custom: {
    50: '#6e579f',
    500: '#281876',
    950: '#000000',
  },
}
SCSS
$custom: #281876;
$custom-light: #6e579f;
$custom-dark: #000000;
JSON
{
  "hex": "#281876",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 118
  },
  "hsl": {
    "h": 250.213,
    "s": 66.197,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30488,
    "c": 0.14881,
    "h": 280.7
  },
  "luminance": 0.02412
}

Semantic roles & 50–950 ramp

primary
#281876
secondary
#99AB3F
accent
#E93FCC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #281876

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

Preview Lab → · Contrast checker → · Palette generator →

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