#281381#281381

#281381 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.167 H 279.3°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).

Color values

HEX#281381
RGBrgb(40, 19, 129)
HSLhsl(251, 74%, 29%)
HSVhsv(251, 85%, 51%)
CMYKcmyk(69%, 85.3%, 0%, 49.4%)
CIE-LABlab(17.92, 41.98, -57.03)
CIE-LCHlch(17.92, 70.81, 306.36°)
OKLaboklab(31.15% 0.0268 -0.1647)
OKLCHoklch(31.15% 0.167 279.3)
XYZxyz(5.0691, 2.5014, 20.9803)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281381 #6C8113
analogous
#133581 #281381 #5F1381
triadic
#281381 #812813 #138128
tetradic
#281381 #811335 #6C8113 #13815F
square
#281381 #811335 #6C8113 #13815F
split-complementary
#281381 #815F13 #358113
monochromatic
#08041B #170B4C #281381 #391BB6 #502EE0

Accessibility & contrast

On white

14.00
#281381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#281381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281381
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281381#FFFFFF#000000##FFFFFF
##2813811.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003084
Deuteranopia (green-blind)
#00277F
Tritanopia (blue-blind)
#00364C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #281381;
/* rgb */ color: rgb(40, 19, 129);
/* oklch */ color: oklch(31.1% 0.167 279.3);
Tailwind
colors: {
  custom: {
    50: '#7156a7',
    500: '#281381',
    950: '#000000',
  },
}
SCSS
$custom: #281381;
$custom-light: #7156a7;
$custom-dark: #000000;
JSON
{
  "hex": "#281381",
  "rgb": {
    "r": 40,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 251.455,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31146,
    "c": 0.16683,
    "h": 279.3
  },
  "luminance": 0.02502
}

Semantic roles & 50–950 ramp

primary
#281381
secondary
#9EB63A
accent
#F137CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #281381

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

Preview Lab → · Contrast checker → · Palette generator →

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