#281270#281270

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

Color values

HEX#281270
RGBrgb(40, 18, 112)
HSLhsl(254, 72%, 25%)
HSVhsv(254, 84%, 44%)
CMYKcmyk(64.3%, 83.9%, 0%, 56.1%)
CIE-LABlab(15.76, 37.22, -49.69)
CIE-LCHlch(15.76, 62.08, 306.84°)
OKLaboklab(29.07% 0.0332 -0.1433)
OKLCHoklch(29.07% 0.147 283.1)
XYZxyz(4.0151, 2.0533, 15.5108)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281270 #5A7012
analogous
#122B70 #281270 #571270
triadic
#281270 #702812 #127028
tetradic
#281270 #70122B #5A7012 #127057
square
#281270 #70122B #5A7012 #127057
split-complementary
#281270 #705712 #2B7012
monochromatic
#09041A #150A3B #281270 #3B1AA5 #4E23D9

Accessibility & contrast

On white

14.89
#281270 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#281270 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281270
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281270#FFFFFF#000000##FFFFFF
##2812701.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A73
Deuteranopia (green-blind)
#00246E
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #281270;
/* rgb */ color: rgb(40, 18, 112);
/* oklch */ color: oklch(29.1% 0.147 283.1);
Tailwind
colors: {
  custom: {
    50: '#6d549a',
    500: '#281270',
    950: '#000000',
  },
}
SCSS
$custom: #281270;
$custom-light: #6d549a;
$custom-dark: #000000;
JSON
{
  "hex": "#281270",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 112
  },
  "hsl": {
    "h": 254.043,
    "s": 72.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29067,
    "c": 0.14709,
    "h": 283.1
  },
  "luminance": 0.02054
}

Semantic roles & 50–950 ramp

primary
#281270
secondary
#8DA737
accent
#EF39C4
background
#F7F4F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #281270

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

Preview Lab → · Contrast checker → · Palette generator →

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