#281261#281261

#281261 is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.4% C 0.128 H 287.3°. Best body text is #FFFFFF at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#281261
RGBrgb(40, 18, 97)
HSLhsl(257, 69%, 23%)
HSVhsv(257, 81%, 38%)
CMYKcmyk(58.8%, 81.4%, 0%, 62%)
CIE-LABlab(14.10, 32.53, -42.57)
CIE-LCHlch(14.10, 53.58, 307.39°)
OKLaboklab(27.41% 0.0382 -0.1225)
OKLCHoklch(27.41% 0.128 287.3)
XYZxyz(3.2484, 1.7466, 11.4729)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281261 #4B6112
analogous
#122361 #281261 #501261
triadic
#281261 #612812 #126128
tetradic
#281261 #611223 #4B6112 #126150
square
#281261 #611223 #4B6112 #126150
split-complementary
#281261 #615012 #236112
monochromatic
#0B051A #13082D #281261 #3D1C95 #5325C8

Accessibility & contrast

On white

15.56
#281261 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#281261 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281261
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281261#FFFFFF#000000##FFFFFF
##2812611.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002663
Deuteranopia (green-blind)
#002260
Tritanopia (blue-blind)
#0F2839
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #281261;
/* rgb */ color: rgb(40, 18, 97);
/* oklch */ color: oklch(27.4% 0.128 287.3);
Tailwind
colors: {
  custom: {
    50: '#6a538f',
    500: '#281261',
    950: '#000000',
  },
}
SCSS
$custom: #281261;
$custom-light: #6a538f;
$custom-dark: #000000;
JSON
{
  "hex": "#281261",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 97
  },
  "hsl": {
    "h": 256.709,
    "s": 68.696,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27406,
    "c": 0.12833,
    "h": 287.3
  },
  "luminance": 0.01747
}

Semantic roles & 50–950 ramp

primary
#281261
secondary
#7D9936
accent
#EC3CBB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #281261

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

Preview Lab → · Contrast checker → · Palette generator →

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