#281679#281679

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

Color values

HEX#281679
RGBrgb(40, 22, 121)
HSLhsl(251, 69%, 28%)
HSVhsv(251, 82%, 47%)
CMYKcmyk(66.9%, 81.8%, 0%, 52.5%)
CIE-LABlab(17.48, 38.05, -52.66)
CIE-LCHlch(17.48, 64.96, 305.85°)
OKLaboklab(30.57% 0.0279 -0.152)
OKLCHoklch(30.57% 0.155 280.4)
XYZxyz(4.6121, 2.4050, 18.3066)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281679 #677916
analogous
#163579 #281679 #591679
triadic
#281679 #792816 #167928
tetradic
#281679 #791635 #677916 #167959
square
#281679 #791635 #677916 #167959
split-complementary
#281679 #795916 #357916
monochromatic
#09051A #170D45 #281679 #391FAD #4F30D9

Accessibility & contrast

On white

14.18
#281679 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281679
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281679#FFFFFF#000000##FFFFFF
##2816791.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281679;
/* rgb */ color: rgb(40, 22, 121);
/* oklch */ color: oklch(30.6% 0.155 280.4);
Tailwind
colors: {
  custom: {
    50: '#6e57a1',
    500: '#281679',
    950: '#000000',
  },
}
SCSS
$custom: #281679;
$custom-light: #6e57a1;
$custom-dark: #000000;
JSON
{
  "hex": "#281679",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 121
  },
  "hsl": {
    "h": 250.909,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30565,
    "c": 0.15453,
    "h": 280.4
  },
  "luminance": 0.02405
}

Semantic roles & 50–950 ramp

primary
#281679
secondary
#9AAE3D
accent
#EC3CCC
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #281679

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

Preview Lab → · Contrast checker → · Palette generator →

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