#281779#281779

#281779 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.154 H 280.2°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#281779
RGBrgb(40, 23, 121)
HSLhsl(250, 68%, 28%)
HSVhsv(250, 81%, 47%)
CMYKcmyk(66.9%, 81%, 0%, 52.5%)
CIE-LABlab(17.66, 37.53, -52.36)
CIE-LCHlch(17.66, 64.42, 305.63°)
OKLaboklab(30.69% 0.0273 -0.1511)
OKLCHoklch(30.69% 0.154 280.2)
XYZxyz(4.6316, 2.4440, 18.3131)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281779 #687917
analogous
#173779 #281779 #591779
triadic
#281779 #792817 #177928
tetradic
#281779 #791737 #687917 #177959
square
#281779 #791737 #687917 #177959
split-complementary
#281779 #795917 #377917
monochromatic
#08051A #170D46 #281779 #3921AC #4F32D8

Accessibility & contrast

On white

14.11
#281779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281779
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281779#FFFFFF#000000##FFFFFF
##2817791.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7C
Deuteranopia (green-blind)
#002877
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #281779;
/* rgb */ color: rgb(40, 23, 121);
/* oklch */ color: oklch(30.7% 0.154 280.2);
Tailwind
colors: {
  custom: {
    50: '#6e57a1',
    500: '#281779',
    950: '#000000',
  },
}
SCSS
$custom: #281779;
$custom-light: #6e57a1;
$custom-dark: #000000;
JSON
{
  "hex": "#281779",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 121
  },
  "hsl": {
    "h": 250.408,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30691,
    "c": 0.15359,
    "h": 280.2
  },
  "luminance": 0.02444
}

Semantic roles & 50–950 ramp

primary
#281779
secondary
#9BAE3E
accent
#EB3DCD
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #281779

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

Preview Lab → · Contrast checker → · Palette generator →

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