#281072#281072

#281072 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 29.1% C 0.151 H 282.9°. Best body text is #FFFFFF at 14.92:1 contrast (WCAG AA passes).

Color values

HEX#281072
RGBrgb(40, 16, 114)
HSLhsl(255, 75%, 25%)
HSVhsv(255, 86%, 45%)
CMYKcmyk(64.9%, 86%, 0%, 55.3%)
CIE-LABlab(15.68, 38.77, -51.13)
CIE-LCHlch(15.68, 64.17, 307.17°)
OKLaboklab(29.08% 0.0337 -0.1475)
OKLCHoklch(29.08% 0.151 282.9)
XYZxyz(4.0967, 2.0363, 16.0935)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281072 #5A7210
analogous
#102972 #281072 #591072
triadic
#281072 #722810 #107228
tetradic
#281072 #721029 #5A7210 #107259
square
#281072 #721029 #5A7210 #107259
split-complementary
#281072 #725910 #297210
monochromatic
#09041B #15083C #281072 #3B18A8 #4E1FDD

Accessibility & contrast

On white

14.92
#281072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281072
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281072#FFFFFF#000000##FFFFFF
##2810721.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A75
Deuteranopia (green-blind)
#002470
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #281072;
/* rgb */ color: rgb(40, 16, 114);
/* oklch */ color: oklch(29.1% 0.151 282.9);
Tailwind
colors: {
  custom: {
    50: '#6d539c',
    500: '#281072',
    950: '#000000',
  },
}
SCSS
$custom: #281072;
$custom-light: #6d539c;
$custom-dark: #000000;
JSON
{
  "hex": "#281072",
  "rgb": {
    "r": 40,
    "g": 16,
    "b": 114
  },
  "hsl": {
    "h": 254.694,
    "s": 75.385,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29075,
    "c": 0.15125,
    "h": 282.9
  },
  "luminance": 0.02037
}

Semantic roles & 50–950 ramp

primary
#281072
secondary
#8DA934
accent
#F236C4
background
#F7F4F9
surface
#EDE7F2
border
#C8C3CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #281072

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

Preview Lab → · Contrast checker → · Palette generator →

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