#281681#281681

#281681 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.164 H 278.9°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#281681
RGBrgb(40, 22, 129)
HSLhsl(250, 71%, 30%)
HSVhsv(250, 83%, 51%)
CMYKcmyk(69%, 82.9%, 0%, 49.4%)
CIE-LABlab(18.41, 40.57, -56.23)
CIE-LCHlch(18.41, 69.34, 305.81°)
OKLaboklab(31.48% 0.0254 -0.1624)
OKLCHoklch(31.48% 0.164 278.9)
XYZxyz(5.1232, 2.6095, 20.9983)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281681 #6F8116
analogous
#163A81 #281681 #5D1681
triadic
#281681 #812816 #168128
tetradic
#281681 #81163A #6F8116 #16815D
square
#281681 #81163A #6F8116 #16815D
split-complementary
#281681 #815D16 #3A8116
monochromatic
#08041A #180D4D #281681 #381FB5 #5135DD

Accessibility & contrast

On white

13.80
#281681 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#281681 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281681
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281681#FFFFFF#000000##FFFFFF
##2816811.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#00297F
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #281681;
/* rgb */ color: rgb(40, 22, 129);
/* oklch */ color: oklch(31.5% 0.164 278.9);
Tailwind
colors: {
  custom: {
    50: '#7057a7',
    500: '#281681',
    950: '#000000',
  },
}
SCSS
$custom: #281681;
$custom-light: #7057a7;
$custom-dark: #000000;
JSON
{
  "hex": "#281681",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 129
  },
  "hsl": {
    "h": 250.093,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31479,
    "c": 0.16437,
    "h": 278.9
  },
  "luminance": 0.0261
}

Semantic roles & 50–950 ramp

primary
#281681
secondary
#A1B63D
accent
#EE3ACF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #281681

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

Preview Lab → · Contrast checker → · Palette generator →

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