#281666#281666

#281666 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.5% C 0.130 H 284.9°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#281666
RGBrgb(40, 22, 102)
HSLhsl(254, 65%, 24%)
HSVhsv(254, 78%, 40%)
CMYKcmyk(60.8%, 78.4%, 0%, 60%)
CIE-LABlab(15.40, 31.93, -43.74)
CIE-LCHlch(15.40, 54.15, 306.13°)
OKLaboklab(28.49% 0.0335 -0.126)
OKLCHoklch(28.49% 0.13 284.9)
XYZxyz(3.5595, 1.9840, 12.7632)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281666 #546616
analogous
#162C66 #281666 #501666
triadic
#281666 #662816 #166628
tetradic
#281666 #66162C #546616 #166650
square
#281666 #66162C #546616 #166650
split-complementary
#281666 #665016 #2C6616
monochromatic
#0A0519 #140B34 #281666 #3C2198 #4F2CCB

Accessibility & contrast

On white

15.03
#281666 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#281666 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281666
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281666#FFFFFF#000000##FFFFFF
##2816661.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002968
Deuteranopia (green-blind)
#002465
Tritanopia (blue-blind)
#072C3D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #281666;
/* rgb */ color: rgb(40, 22, 102);
/* oklch */ color: oklch(28.5% 0.130 284.9);
Tailwind
colors: {
  custom: {
    50: '#6a5592',
    500: '#281666',
    950: '#000000',
  },
}
SCSS
$custom: #281666;
$custom-light: #6a5592;
$custom-dark: #000000;
JSON
{
  "hex": "#281666",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 102
  },
  "hsl": {
    "h": 253.5,
    "s": 64.516,
    "l": 24.314
  },
  "oklch": {
    "l": 0.28485,
    "c": 0.13033,
    "h": 284.9
  },
  "luminance": 0.01984
}

Semantic roles & 50–950 ramp

primary
#281666
secondary
#879D3B
accent
#E840C2
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #281666

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

Preview Lab → · Contrast checker → · Palette generator →

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