#281877#281877

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

Color values

HEX#281877
RGBrgb(40, 24, 119)
HSLhsl(250, 66%, 28%)
HSVhsv(250, 80%, 47%)
CMYKcmyk(66.4%, 79.8%, 0%, 53.3%)
CIE-LABlab(17.63, 36.35, -51.14)
CIE-LCHlch(17.63, 62.74, 305.40°)
OKLaboklab(30.6% 0.0273 -0.1476)
OKLCHoklch(30.6% 0.15 280.5)
XYZxyz(4.5304, 2.4359, 17.6806)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281877 #677718
analogous
#183777 #281877 #571877
triadic
#281877 #772818 #187728
tetradic
#281877 #771837 #677718 #187757
square
#281877 #771837 #677718 #187757
split-complementary
#281877 #775718 #377718
monochromatic
#090519 #170E44 #281877 #3922AA #4F33D6

Accessibility & contrast

On white

14.12
#281877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281877
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281877#FFFFFF#000000##FFFFFF
##2818771.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281877;
/* rgb */ color: rgb(40, 24, 119);
/* oklch */ color: oklch(30.6% 0.150 280.5);
Tailwind
colors: {
  custom: {
    50: '#6e589f',
    500: '#281877',
    950: '#000000',
  },
}
SCSS
$custom: #281877;
$custom-light: #6e589f;
$custom-dark: #000000;
JSON
{
  "hex": "#281877",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 250.105,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30598,
    "c": 0.15009,
    "h": 280.5
  },
  "luminance": 0.02436
}

Semantic roles & 50–950 ramp

primary
#281877
secondary
#9AAC3F
accent
#E93ECD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #281877

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

Preview Lab → · Contrast checker → · Palette generator →

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