#281165#281165

#281165 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.7% C 0.134 H 286.3°. Best body text is #FFFFFF at 15.46:1 contrast (WCAG AA passes).

Color values

HEX#281165
RGBrgb(40, 17, 101)
HSLhsl(256, 71%, 23%)
HSVhsv(256, 83%, 40%)
CMYKcmyk(60.4%, 83.2%, 0%, 60.4%)
CIE-LABlab(14.35, 34.30, -44.81)
CIE-LCHlch(14.35, 56.43, 307.44°)
OKLaboklab(27.72% 0.0377 -0.129)
OKLCHoklch(27.72% 0.134 286.3)
XYZxyz(3.4238, 1.7914, 12.4748)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281165 #4E6511
analogous
#112465 #281165 #521165
triadic
#281165 #652811 #116528
tetradic
#281165 #651124 #4E6511 #116552
square
#281165 #651124 #4E6511 #116552
split-complementary
#281165 #655211 #246511
monochromatic
#0A041A #130831 #281165 #3D1A99 #5123CE

Accessibility & contrast

On white

15.46
#281165 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#281165 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281165
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281165#FFFFFF#000000##FFFFFF
##2811651.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281165;
/* rgb */ color: rgb(40, 17, 101);
/* oklch */ color: oklch(27.7% 0.134 286.3);
Tailwind
colors: {
  custom: {
    50: '#6b5292',
    500: '#281165',
    950: '#000000',
  },
}
SCSS
$custom: #281165;
$custom-light: #6b5292;
$custom-dark: #000000;
JSON
{
  "hex": "#281165",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 101
  },
  "hsl": {
    "h": 256.429,
    "s": 71.186,
    "l": 23.137
  },
  "oklch": {
    "l": 0.27716,
    "c": 0.13441,
    "h": 286.3
  },
  "luminance": 0.01792
}

Semantic roles & 50–950 ramp

primary
#281165
secondary
#819D35
accent
#EE3ABD
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #281165

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

Preview Lab → · Contrast checker → · Palette generator →

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