#281352#281352

#281352 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.108 H 292.6°. Best body text is #FFFFFF at 16.09:1 contrast (WCAG AA passes).

Color values

HEX#281352
RGBrgb(40, 19, 82)
HSLhsl(260, 62%, 20%)
HSVhsv(260, 77%, 32%)
CMYKcmyk(51.2%, 76.8%, 0%, 67.8%)
CIE-LABlab(12.77, 27.22, -34.63)
CIE-LCHlch(12.77, 44.05, 308.17°)
OKLaboklab(26.01% 0.0413 -0.0993)
OKLCHoklch(26.01% 0.108 292.6)
XYZxyz(2.6305, 1.5260, 8.1369)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281352 #3D5213
analogous
#131E52 #281352 #481352
triadic
#281352 #522813 #135228
tetradic
#281352 #52131E #3D5213 #135248
square
#281352 #52131E #3D5213 #135248
split-complementary
#281352 #524813 #1E5213
monochromatic
#0C0619 #100720 #281352 #401F84 #582AB5

Accessibility & contrast

On white

16.09
#281352 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281352
16.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281352#FFFFFF#000000##FFFFFF
##2813521.0016.091.3116.09
#FFFFFF16.091.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002254
Deuteranopia (green-blind)
#002051
Tritanopia (blue-blind)
#1B2331
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #281352;
/* rgb */ color: rgb(40, 19, 82);
/* oklch */ color: oklch(26.0% 0.108 292.6);
Tailwind
colors: {
  custom: {
    50: '#675283',
    500: '#281352',
    950: '#000000',
  },
}
SCSS
$custom: #281352;
$custom-light: #675283;
$custom-dark: #000000;
JSON
{
  "hex": "#281352",
  "rgb": {
    "r": 40,
    "g": 19,
    "b": 82
  },
  "hsl": {
    "h": 260,
    "s": 62.376,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26005,
    "c": 0.10751,
    "h": 292.6
  },
  "luminance": 0.01526
}

Semantic roles & 50–950 ramp

primary
#281352
secondary
#6E8A36
accent
#E542AF
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #281352

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

Preview Lab → · Contrast checker → · Palette generator →

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