#281586#281586

#281586 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.171 H 278.2°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#281586
RGBrgb(40, 21, 134)
HSLhsl(250, 73%, 30%)
HSVhsv(250, 84%, 53%)
CMYKcmyk(70.1%, 84.3%, 0%, 47.5%)
CIE-LABlab(18.84, 42.60, -58.68)
CIE-LCHlch(18.84, 72.51, 305.98°)
OKLaboklab(31.95% 0.0243 -0.1695)
OKLCHoklch(31.95% 0.171 278.2)
XYZxyz(5.4449, 2.7082, 22.7854)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281586 #738615
analogous
#153B86 #281586 #601586
triadic
#281586 #862815 #158628
tetradic
#281586 #86153B #738615 #158660
square
#281586 #86153B #738615 #158660
split-complementary
#281586 #866015 #3B8615
monochromatic
#08041C #180D51 #281586 #381DBB #5236DF

Accessibility & contrast

On white

13.62
#281586 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#281586 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281586
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281586#FFFFFF#000000##FFFFFF
##2815861.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003289
Deuteranopia (green-blind)
#002984
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #281586;
/* rgb */ color: rgb(40, 21, 134);
/* oklch */ color: oklch(31.9% 0.171 278.2);
Tailwind
colors: {
  custom: {
    50: '#7257aa',
    500: '#281586',
    950: '#000000',
  },
}
SCSS
$custom: #281586;
$custom-light: #7257aa;
$custom-dark: #000000;
JSON
{
  "hex": "#281586",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 134
  },
  "hsl": {
    "h": 250.088,
    "s": 72.903,
    "l": 30.392
  },
  "oklch": {
    "l": 0.31948,
    "c": 0.17123,
    "h": 278.2
  },
  "luminance": 0.02709
}

Semantic roles & 50–950 ramp

primary
#281586
secondary
#A5BA3C
accent
#F038D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #281586

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

Preview Lab → · Contrast checker → · Palette generator →

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