#281671#281671

#281671 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.144 H 282.1°. Best body text is #FFFFFF at 14.55:1 contrast (WCAG AA passes).

Color values

HEX#281671
RGBrgb(40, 22, 113)
HSLhsl(252, 67%, 26%)
HSVhsv(252, 81%, 44%)
CMYKcmyk(64.6%, 80.5%, 0%, 55.7%)
CIE-LABlab(16.59, 35.49, -48.98)
CIE-LCHlch(16.59, 60.48, 305.93°)
OKLaboklab(29.67% 0.0303 -0.1413)
OKLCHoklch(29.67% 0.144 282.1)
XYZxyz(4.1417, 2.2169, 15.8292)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281671 #5F7116
analogous
#163271 #281671 #561671
triadic
#281671 #712816 #167128
tetradic
#281671 #711632 #5F7116 #167156
square
#281671 #711632 #5F7116 #167156
split-complementary
#281671 #715616 #327116
monochromatic
#09051A #160C3E #281671 #3A20A4 #4D2CD6

Accessibility & contrast

On white

14.55
#281671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#281671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281671
14.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281671#FFFFFF#000000##FFFFFF
##2816711.0014.551.4414.55
#FFFFFF14.551.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00266F
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #281671;
/* rgb */ color: rgb(40, 22, 113);
/* oklch */ color: oklch(29.7% 0.144 282.1);
Tailwind
colors: {
  custom: {
    50: '#6d569b',
    500: '#281671',
    950: '#000000',
  },
}
SCSS
$custom: #281671;
$custom-light: #6d569b;
$custom-dark: #000000;
JSON
{
  "hex": "#281671",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 113
  },
  "hsl": {
    "h": 251.868,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29672,
    "c": 0.14449,
    "h": 282.1
  },
  "luminance": 0.02217
}

Semantic roles & 50–950 ramp

primary
#281671
secondary
#92A73C
accent
#EA3EC8
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #281671

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

Preview Lab → · Contrast checker → · Palette generator →

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