#281161#281161

#281161 is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.3% C 0.129 H 287.5°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#281161
RGBrgb(40, 17, 97)
HSLhsl(257, 70%, 22%)
HSVhsv(257, 82%, 38%)
CMYKcmyk(58.8%, 82.5%, 0%, 62%)
CIE-LABlab(13.91, 33.06, -42.87)
CIE-LCHlch(13.91, 54.14, 307.63°)
OKLaboklab(27.28% 0.039 -0.1234)
OKLCHoklch(27.28% 0.129 287.5)
XYZxyz(3.2325, 1.7149, 11.4676)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281161 #4A6111
analogous
#112261 #281161 #501161
triadic
#281161 #612811 #116128
tetradic
#281161 #611122 #4A6111 #116150
square
#281161 #611122 #4A6111 #116150
split-complementary
#281161 #615011 #226111
monochromatic
#0B051A #13082D #281161 #3D1A95 #5323C9

Accessibility & contrast

On white

15.64
#281161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#281161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281161
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281161#FFFFFF#000000##FFFFFF
##2811611.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002563
Deuteranopia (green-blind)
#002160
Tritanopia (blue-blind)
#0F2839
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #281161;
/* rgb */ color: rgb(40, 17, 97);
/* oklch */ color: oklch(27.3% 0.129 287.5);
Tailwind
colors: {
  custom: {
    50: '#6a528f',
    500: '#281161',
    950: '#000000',
  },
}
SCSS
$custom: #281161;
$custom-light: #6a528f;
$custom-dark: #000000;
JSON
{
  "hex": "#281161",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 97
  },
  "hsl": {
    "h": 257.25,
    "s": 70.175,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27278,
    "c": 0.1294,
    "h": 287.5
  },
  "luminance": 0.01715
}

Semantic roles & 50–950 ramp

primary
#281161
secondary
#7C9934
accent
#ED3BBA
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #281161

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

Preview Lab → · Contrast checker → · Palette generator →

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