#281273#281273

#281273 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.151 H 282.3°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#281273
RGBrgb(40, 18, 115)
HSLhsl(254, 73%, 26%)
HSVhsv(254, 84%, 45%)
CMYKcmyk(65.2%, 84.3%, 0%, 54.9%)
CIE-LABlab(16.11, 38.15, -51.06)
CIE-LCHlch(16.11, 63.74, 306.76°)
OKLaboklab(29.41% 0.0322 -0.1473)
OKLCHoklch(29.41% 0.151 282.3)
XYZxyz(4.1849, 2.1212, 16.4052)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281273 #5D7312
analogous
#122C73 #281273 #581273
triadic
#281273 #732812 #127328
tetradic
#281273 #73122C #5D7312 #127358
square
#281273 #73122C #5D7312 #127358
split-complementary
#281273 #735812 #2C7312
monochromatic
#09041A #160A3E #281273 #3A1AA8 #4D23DD

Accessibility & contrast

On white

14.74
#281273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281273
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281273#FFFFFF#000000##FFFFFF
##2812731.0014.741.4214.74
#FFFFFF14.741.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B76
Deuteranopia (green-blind)
#002571
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #281273;
/* rgb */ color: rgb(40, 18, 115);
/* oklch */ color: oklch(29.4% 0.151 282.3);
Tailwind
colors: {
  custom: {
    50: '#6e549c',
    500: '#281273',
    950: '#000000',
  },
}
SCSS
$custom: #281273;
$custom-light: #6e549c;
$custom-dark: #000000;
JSON
{
  "hex": "#281273",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 253.608,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29409,
    "c": 0.15077,
    "h": 282.3
  },
  "luminance": 0.02122
}

Semantic roles & 50–950 ramp

primary
#281273
secondary
#90AA37
accent
#F038C6
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #281273

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

Preview Lab → · Contrast checker → · Palette generator →

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