#281252#281252

#281252 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.109 H 292.9°. Best body text is #FFFFFF at 16.17:1 contrast (WCAG AA passes).

Color values

HEX#281252
RGBrgb(40, 18, 82)
HSLhsl(261, 64%, 20%)
HSVhsv(261, 78%, 32%)
CMYKcmyk(51.2%, 78%, 0%, 67.8%)
CIE-LABlab(12.56, 27.81, -34.98)
CIE-LCHlch(12.56, 44.69, 308.49°)
OKLaboklab(25.86% 0.0424 -0.1003)
OKLCHoklch(25.86% 0.109 292.9)
XYZxyz(2.6139, 1.4928, 8.1314)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281252 #3C5212
analogous
#121C52 #281252 #481252
triadic
#281252 #522812 #125228
tetradic
#281252 #52121C #3C5212 #125248
square
#281252 #52121C #3C5212 #125248
split-complementary
#281252 #524812 #1C5212
monochromatic
#0C0619 #100720 #281252 #401D84 #5928B6

Accessibility & contrast

On white

16.17
#281252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#281252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281252
16.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281252#FFFFFF#000000##FFFFFF
##2812521.0016.171.3016.17
#FFFFFF16.171.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002154
Deuteranopia (green-blind)
#001F51
Tritanopia (blue-blind)
#1B2330
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #281252;
/* rgb */ color: rgb(40, 18, 82);
/* oklch */ color: oklch(25.9% 0.109 292.9);
Tailwind
colors: {
  custom: {
    50: '#675283',
    500: '#281252',
    950: '#000000',
  },
}
SCSS
$custom: #281252;
$custom-light: #675283;
$custom-dark: #000000;
JSON
{
  "hex": "#281252",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 260.625,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.25856,
    "c": 0.10884,
    "h": 292.9
  },
  "luminance": 0.01493
}

Semantic roles & 50–950 ramp

primary
#281252
secondary
#6D8B35
accent
#E741AE
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #281252

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

Preview Lab → · Contrast checker → · Palette generator →

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