#281255#281255

#281255 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.2% C 0.113 H 291.7°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#281255
RGBrgb(40, 18, 85)
HSLhsl(260, 65%, 20%)
HSVhsv(260, 79%, 33%)
CMYKcmyk(52.9%, 78.8%, 0%, 66.7%)
CIE-LABlab(12.86, 28.75, -36.54)
CIE-LCHlch(12.86, 46.50, 308.20°)
OKLaboklab(26.16% 0.0416 -0.1048)
OKLCHoklch(26.16% 0.113 291.7)
XYZxyz(2.7306, 1.5395, 8.7458)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281255 #3F5512
analogous
#121E55 #281255 #491255
triadic
#281255 #552812 #125528
tetradic
#281255 #55121E #3F5512 #125549
square
#281255 #55121E #3F5512 #125549
split-complementary
#281255 #554912 #1E5512
monochromatic
#0C0519 #100722 #281255 #401D88 #5827BA

Accessibility & contrast

On white

16.06
#281255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#281255 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281255
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281255#FFFFFF#000000##FFFFFF
##2812551.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002257
Deuteranopia (green-blind)
#002054
Tritanopia (blue-blind)
#192432
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #281255;
/* rgb */ color: rgb(40, 18, 85);
/* oklch */ color: oklch(26.2% 0.113 291.7);
Tailwind
colors: {
  custom: {
    50: '#675286',
    500: '#281255',
    950: '#000000',
  },
}
SCSS
$custom: #281255;
$custom-light: #675286;
$custom-dark: #000000;
JSON
{
  "hex": "#281255",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 85
  },
  "hsl": {
    "h": 259.701,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26156,
    "c": 0.1128,
    "h": 291.7
  },
  "luminance": 0.0154
}

Semantic roles & 50–950 ramp

primary
#281255
secondary
#718E35
accent
#E840B1
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #281255

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

Preview Lab → · Contrast checker → · Palette generator →

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