#281279#281279

#281279 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.158 H 281.0°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#281279
RGBrgb(40, 18, 121)
HSLhsl(253, 74%, 27%)
HSVhsv(253, 85%, 47%)
CMYKcmyk(66.9%, 85.1%, 0%, 52.5%)
CIE-LABlab(16.82, 39.99, -53.76)
CIE-LCHlch(16.82, 67.00, 306.64°)
OKLaboklab(30.1% 0.0301 -0.1551)
OKLCHoklch(30.1% 0.158 281)
XYZxyz(4.5415, 2.2639, 18.2831)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281279 #637912
analogous
#122F79 #281279 #5C1279
triadic
#281279 #792812 #127928
tetradic
#281279 #79122F #637912 #12795C
square
#281279 #79122F #637912 #12795C
split-complementary
#281279 #795C12 #2F7912
monochromatic
#09041B #160A44 #281279 #3A1AAE #4E27DF

Accessibility & contrast

On white

14.45
#281279 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#281279 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281279
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281279#FFFFFF#000000##FFFFFF
##2812791.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7C
Deuteranopia (green-blind)
#002677
Tritanopia (blue-blind)
#003247
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #281279;
/* rgb */ color: rgb(40, 18, 121);
/* oklch */ color: oklch(30.1% 0.158 281.0);
Tailwind
colors: {
  custom: {
    50: '#6f54a1',
    500: '#281279',
    950: '#000000',
  },
}
SCSS
$custom: #281279;
$custom-light: #6f54a1;
$custom-dark: #000000;
JSON
{
  "hex": "#281279",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 121
  },
  "hsl": {
    "h": 252.816,
    "s": 74.101,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30102,
    "c": 0.15804,
    "h": 281
  },
  "luminance": 0.02264
}

Semantic roles & 50–950 ramp

primary
#281279
secondary
#96AF38
accent
#F137C9
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #281279

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

Preview Lab → · Contrast checker → · Palette generator →

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