#281777#281777

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

Color values

HEX#281777
RGBrgb(40, 23, 119)
HSLhsl(251, 68%, 28%)
HSVhsv(251, 81%, 47%)
CMYKcmyk(66.4%, 80.7%, 0%, 53.3%)
CIE-LABlab(17.44, 36.88, -51.45)
CIE-LCHlch(17.44, 63.30, 305.64°)
OKLaboklab(30.47% 0.0279 -0.1485)
OKLCHoklch(30.47% 0.151 280.6)
XYZxyz(4.5102, 2.3955, 17.6739)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281777 #667717
analogous
#173677 #281777 #581777
triadic
#281777 #772817 #177728
tetradic
#281777 #771736 #667717 #177758
square
#281777 #771736 #667717 #177758
split-complementary
#281777 #775817 #367717
monochromatic
#09051A #170D44 #281777 #3921AA #4F31D7

Accessibility & contrast

On white

14.20
#281777 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281777
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281777#FFFFFF#000000##FFFFFF
##2817771.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281777;
/* rgb */ color: rgb(40, 23, 119);
/* oklch */ color: oklch(30.5% 0.151 280.6);
Tailwind
colors: {
  custom: {
    50: '#6e579f',
    500: '#281777',
    950: '#000000',
  },
}
SCSS
$custom: #281777;
$custom-light: #6e579f;
$custom-dark: #000000;
JSON
{
  "hex": "#281777",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 119
  },
  "hsl": {
    "h": 250.625,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30467,
    "c": 0.15108,
    "h": 280.6
  },
  "luminance": 0.02396
}

Semantic roles & 50–950 ramp

primary
#281777
secondary
#99AC3E
accent
#EA3DCC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #281777

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

Preview Lab → · Contrast checker → · Palette generator →

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