#281167#281167

#281167 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.9% C 0.137 H 285.7°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#281167
RGBrgb(40, 17, 103)
HSLhsl(256, 72%, 24%)
HSVhsv(256, 83%, 40%)
CMYKcmyk(61.2%, 83.5%, 0%, 59.6%)
CIE-LABlab(14.57, 34.92, -45.76)
CIE-LCHlch(14.57, 57.56, 307.35°)
OKLaboklab(27.94% 0.037 -0.1318)
OKLCHoklch(27.94% 0.137 285.7)
XYZxyz(3.5230, 1.8311, 12.9971)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281167 #506711
analogous
#112567 #281167 #531167
triadic
#281167 #672811 #116728
tetradic
#281167 #671125 #506711 #116753
square
#281167 #671125 #506711 #116753
split-complementary
#281167 #675311 #256711
monochromatic
#0A041A #140832 #281167 #3C1A9C #5122D0

Accessibility & contrast

On white

15.37
#281167 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#281167 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281167
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281167#FFFFFF#000000##FFFFFF
##2811671.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002769
Deuteranopia (green-blind)
#002265
Tritanopia (blue-blind)
#062A3C
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #281167;
/* rgb */ color: rgb(40, 17, 103);
/* oklch */ color: oklch(27.9% 0.137 285.7);
Tailwind
colors: {
  custom: {
    50: '#6b5393',
    500: '#281167',
    950: '#000000',
  },
}
SCSS
$custom: #281167;
$custom-light: #6b5393;
$custom-dark: #000000;
JSON
{
  "hex": "#281167",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 103
  },
  "hsl": {
    "h": 256.047,
    "s": 71.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.27937,
    "c": 0.13691,
    "h": 285.7
  },
  "luminance": 0.01831
}

Semantic roles & 50–950 ramp

primary
#281167
secondary
#839F35
accent
#EE39BE
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #281167

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

Preview Lab → · Contrast checker → · Palette generator →

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