#281682#281682

#281682 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.166 H 278.7°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#281682
RGBrgb(40, 22, 130)
HSLhsl(250, 71%, 30%)
HSVhsv(250, 83%, 51%)
CMYKcmyk(69.2%, 83.1%, 0%, 49%)
CIE-LABlab(18.52, 40.88, -56.67)
CIE-LCHlch(18.52, 69.88, 305.81°)
OKLaboklab(31.59% 0.0251 -0.1637)
OKLCHoklch(31.59% 0.166 278.7)
XYZxyz(5.1900, 2.6362, 21.3501)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281682 #708216
analogous
#163A82 #281682 #5E1682
triadic
#281682 #822816 #168228
tetradic
#281682 #82163A #708216 #16825E
square
#281682 #82163A #708216 #16825E
split-complementary
#281682 #825E16 #3A8216
monochromatic
#08041A #180D4E #281682 #381FB6 #5135DD

Accessibility & contrast

On white

13.75
#281682 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#281682 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281682
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281682#FFFFFF#000000##FFFFFF
##2816821.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003185
Deuteranopia (green-blind)
#002980
Tritanopia (blue-blind)
#00374D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #281682;
/* rgb */ color: rgb(40, 22, 130);
/* oklch */ color: oklch(31.6% 0.166 278.7);
Tailwind
colors: {
  custom: {
    50: '#7157a8',
    500: '#281682',
    950: '#000000',
  },
}
SCSS
$custom: #281682;
$custom-light: #7157a8;
$custom-dark: #000000;
JSON
{
  "hex": "#281682",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 130
  },
  "hsl": {
    "h": 250,
    "s": 71.053,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31594,
    "c": 0.16558,
    "h": 278.7
  },
  "luminance": 0.02637
}

Semantic roles & 50–950 ramp

primary
#281682
secondary
#A2B73D
accent
#EE3AD0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #281682

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

Preview Lab → · Contrast checker → · Palette generator →

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