#281652#281652

#281652 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.103 H 291.5°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#281652
RGBrgb(40, 22, 82)
HSLhsl(258, 58%, 20%)
HSVhsv(258, 73%, 32%)
CMYKcmyk(51.2%, 73.2%, 0%, 67.8%)
CIE-LABlab(13.44, 25.39, -33.55)
CIE-LCHlch(13.44, 42.08, 307.12°)
OKLaboklab(26.48% 0.0379 -0.0961)
OKLCHoklch(26.48% 0.103 291.5)
XYZxyz(2.6845, 1.6340, 8.1550)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281652 #405216
analogous
#162252 #281652 #461652
triadic
#281652 #522816 #165228
tetradic
#281652 #521622 #405216 #165246
square
#281652 #521622 #405216 #165246
split-complementary
#281652 #524616 #225216
monochromatic
#0C0618 #100922 #281652 #402382 #5730B3

Accessibility & contrast

On white

15.83
#281652 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#281652 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281652
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281652#FFFFFF#000000##FFFFFF
##2816521.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002354
Deuteranopia (green-blind)
#002151
Tritanopia (blue-blind)
#1B2531
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #281652;
/* rgb */ color: rgb(40, 22, 82);
/* oklch */ color: oklch(26.5% 0.103 291.5);
Tailwind
colors: {
  custom: {
    50: '#675483',
    500: '#281652',
    950: '#000000',
  },
}
SCSS
$custom: #281652;
$custom-light: #675483;
$custom-dark: #000000;
JSON
{
  "hex": "#281652",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 82
  },
  "hsl": {
    "h": 258,
    "s": 57.692,
    "l": 20.392
  },
  "oklch": {
    "l": 0.2648,
    "c": 0.10329,
    "h": 291.5
  },
  "luminance": 0.01634
}

Semantic roles & 50–950 ramp

primary
#281652
secondary
#72893A
accent
#E147B3
background
#F6F4F8
surface
#EBE8EF
border
#C6C4CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #281652

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

Preview Lab → · Contrast checker → · Palette generator →

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