#281966#281966

#281966 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.127 H 284.1°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#281966
RGBrgb(40, 25, 102)
HSLhsl(252, 61%, 25%)
HSVhsv(252, 75%, 40%)
CMYKcmyk(60.8%, 75.5%, 0%, 60%)
CIE-LABlab(16.03, 30.16, -42.71)
CIE-LCHlch(16.03, 52.28, 305.23°)
OKLaboklab(28.93% 0.0309 -0.123)
OKLCHoklch(28.93% 0.127 284.1)
XYZxyz(3.6202, 2.1055, 12.7834)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281966 #576619
analogous
#193166 #281966 #4E1966
triadic
#281966 #662819 #196628
tetradic
#281966 #661931 #576619 #19664E
square
#281966 #661931 #576619 #19664E
split-complementary
#281966 #664E19 #316619
monochromatic
#0A0619 #150D35 #281966 #3B2597 #4F31C8

Accessibility & contrast

On white

14.78
#281966 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#281966 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281966
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281966#FFFFFF#000000##FFFFFF
##2819661.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A68
Deuteranopia (green-blind)
#002565
Tritanopia (blue-blind)
#072E3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #281966;
/* rgb */ color: rgb(40, 25, 102);
/* oklch */ color: oklch(28.9% 0.127 284.1);
Tailwind
colors: {
  custom: {
    50: '#6a5792',
    500: '#281966',
    950: '#000000',
  },
}
SCSS
$custom: #281966;
$custom-light: #6a5792;
$custom-dark: #000000;
JSON
{
  "hex": "#281966",
  "rgb": {
    "r": 40,
    "g": 25,
    "b": 102
  },
  "hsl": {
    "h": 251.688,
    "s": 60.63,
    "l": 24.902
  },
  "oklch": {
    "l": 0.2893,
    "c": 0.12678,
    "h": 284.1
  },
  "luminance": 0.02106
}

Semantic roles & 50–950 ramp

primary
#281966
secondary
#8A9C3F
accent
#E444C5
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #281966

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

Preview Lab → · Contrast checker → · Palette generator →

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