#281162#281162

#281162 is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.4% C 0.131 H 287.2°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#281162
RGBrgb(40, 17, 98)
HSLhsl(257, 70%, 23%)
HSVhsv(257, 83%, 38%)
CMYKcmyk(59.2%, 82.7%, 0%, 61.6%)
CIE-LABlab(14.02, 33.37, -43.36)
CIE-LCHlch(14.02, 54.71, 307.58°)
OKLaboklab(27.39% 0.0386 -0.1248)
OKLCHoklch(27.39% 0.131 287.2)
XYZxyz(3.2795, 1.7337, 11.7147)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281162 #4B6211
analogous
#112262 #281162 #501162
triadic
#281162 #622811 #116228
tetradic
#281162 #621122 #4B6211 #116250
square
#281162 #621122 #4B6211 #116250
split-complementary
#281162 #625011 #226211
monochromatic
#0B051A #13082E #281162 #3D1A96 #5323CA

Accessibility & contrast

On white

15.59
#281162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281162
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281162#FFFFFF#000000##FFFFFF
##2811621.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002664
Deuteranopia (green-blind)
#002161
Tritanopia (blue-blind)
#0E2839
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #281162;
/* rgb */ color: rgb(40, 17, 98);
/* oklch */ color: oklch(27.4% 0.131 287.2);
Tailwind
colors: {
  custom: {
    50: '#6a5290',
    500: '#281162',
    950: '#000000',
  },
}
SCSS
$custom: #281162;
$custom-light: #6a5290;
$custom-dark: #000000;
JSON
{
  "hex": "#281162",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 98
  },
  "hsl": {
    "h": 257.037,
    "s": 70.435,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27387,
    "c": 0.13066,
    "h": 287.2
  },
  "luminance": 0.01734
}

Semantic roles & 50–950 ramp

primary
#281162
secondary
#7D9A34
accent
#ED3BBA
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #281162

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

Preview Lab → · Contrast checker → · Palette generator →

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