#281164#281164

#281164 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.6% C 0.133 H 286.6°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#281164
RGBrgb(40, 17, 100)
HSLhsl(257, 71%, 23%)
HSVhsv(257, 83%, 39%)
CMYKcmyk(60%, 83%, 0%, 60.8%)
CIE-LABlab(14.24, 33.99, -44.33)
CIE-LCHlch(14.24, 55.86, 307.48°)
OKLaboklab(27.61% 0.038 -0.1276)
OKLCHoklch(27.61% 0.133 286.6)
XYZxyz(3.3751, 1.7719, 12.2183)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281164 #4D6411
analogous
#112364 #281164 #521164
triadic
#281164 #642811 #116428
tetradic
#281164 #641123 #4D6411 #116452
square
#281164 #641123 #4D6411 #116452
split-complementary
#281164 #645211 #236411
monochromatic
#0A041A #130830 #281164 #3D1A98 #5223CD

Accessibility & contrast

On white

15.51
#281164 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#281164 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281164
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281164#FFFFFF#000000##FFFFFF
##2811641.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002666
Deuteranopia (green-blind)
#002263
Tritanopia (blue-blind)
#0B293A
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #281164;
/* rgb */ color: rgb(40, 17, 100);
/* oklch */ color: oklch(27.6% 0.133 286.6);
Tailwind
colors: {
  custom: {
    50: '#6a5291',
    500: '#281164',
    950: '#000000',
  },
}
SCSS
$custom: #281164;
$custom-light: #6a5291;
$custom-dark: #000000;
JSON
{
  "hex": "#281164",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 100
  },
  "hsl": {
    "h": 256.627,
    "s": 70.94,
    "l": 22.941
  },
  "oklch": {
    "l": 0.27606,
    "c": 0.13316,
    "h": 286.6
  },
  "luminance": 0.01772
}

Semantic roles & 50–950 ramp

primary
#281164
secondary
#809C35
accent
#EE3ABC
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #281164

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

Preview Lab → · Contrast checker → · Palette generator →

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