#281665#281665

#281665 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.4% C 0.129 H 285.2°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#281665
RGBrgb(40, 22, 101)
HSLhsl(254, 64%, 24%)
HSVhsv(254, 78%, 40%)
CMYKcmyk(60.4%, 78.2%, 0%, 60.4%)
CIE-LABlab(15.30, 31.60, -43.25)
CIE-LCHlch(15.30, 53.56, 306.15°)
OKLaboklab(28.38% 0.0337 -0.1245)
OKLCHoklch(28.38% 0.129 285.2)
XYZxyz(3.5102, 1.9643, 12.5036)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281665 #536516
analogous
#162C65 #281665 #501665
triadic
#281665 #652816 #166528
tetradic
#281665 #65162C #536516 #166550
square
#281665 #65162C #536516 #166550
split-complementary
#281665 #655016 #2C6516
monochromatic
#0A0519 #140B33 #281665 #3C2197 #502CCA

Accessibility & contrast

On white

15.08
#281665 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#281665 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281665
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281665#FFFFFF#000000##FFFFFF
##2816651.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002867
Deuteranopia (green-blind)
#002464
Tritanopia (blue-blind)
#092C3C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #281665;
/* rgb */ color: rgb(40, 22, 101);
/* oklch */ color: oklch(28.4% 0.129 285.2);
Tailwind
colors: {
  custom: {
    50: '#6a5592',
    500: '#281665',
    950: '#000000',
  },
}
SCSS
$custom: #281665;
$custom-light: #6a5592;
$custom-dark: #000000;
JSON
{
  "hex": "#281665",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 101
  },
  "hsl": {
    "h": 253.671,
    "s": 64.228,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28379,
    "c": 0.12901,
    "h": 285.2
  },
  "luminance": 0.01965
}

Semantic roles & 50–950 ramp

primary
#281665
secondary
#869C3B
accent
#E741C1
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #281665

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

Preview Lab → · Contrast checker → · Palette generator →

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