#281371#281371

#281371 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.147 H 282.6°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#281371
RGBrgb(40, 19, 113)
HSLhsl(253, 71%, 26%)
HSVhsv(253, 83%, 44%)
CMYKcmyk(64.6%, 83.2%, 0%, 55.7%)
CIE-LABlab(16.05, 37.04, -49.87)
CIE-LCHlch(16.05, 62.12, 306.60°)
OKLaboklab(29.3% 0.0323 -0.1438)
OKLCHoklch(29.3% 0.147 282.6)
XYZxyz(4.0877, 2.1088, 15.8112)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281371 #5C7113
analogous
#132D71 #281371 #571371
triadic
#281371 #712813 #137128
tetradic
#281371 #71132D #5C7113 #137157
square
#281371 #71132D #5C7113 #137157
split-complementary
#281371 #715713 #2D7113
monochromatic
#09041A #150A3D #281371 #3B1CA5 #4D25DA

Accessibility & contrast

On white

14.77
#281371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#281371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281371
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281371#FFFFFF#000000##FFFFFF
##2813711.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B74
Deuteranopia (green-blind)
#00256F
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #281371;
/* rgb */ color: rgb(40, 19, 113);
/* oklch */ color: oklch(29.3% 0.147 282.6);
Tailwind
colors: {
  custom: {
    50: '#6d549b',
    500: '#281371',
    950: '#000000',
  },
}
SCSS
$custom: #281371;
$custom-light: #6d549b;
$custom-dark: #000000;
JSON
{
  "hex": "#281371",
  "rgb": {
    "r": 40,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 253.404,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29297,
    "c": 0.14741,
    "h": 282.6
  },
  "luminance": 0.02109
}

Semantic roles & 50–950 ramp

primary
#281371
secondary
#8FA838
accent
#EE3AC6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #281371

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

Preview Lab → · Contrast checker → · Palette generator →

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