#281871#281871

#281871 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.142 H 281.7°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#281871
RGBrgb(40, 24, 113)
HSLhsl(251, 65%, 27%)
HSVhsv(251, 79%, 44%)
CMYKcmyk(64.6%, 78.8%, 0%, 55.7%)
CIE-LABlab(16.97, 34.39, -48.35)
CIE-LCHlch(16.97, 59.33, 305.43°)
OKLaboklab(29.94% 0.0289 -0.1394)
OKLCHoklch(29.94% 0.142 281.7)
XYZxyz(4.1814, 2.2963, 15.8425)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281871 #617118
analogous
#183471 #281871 #551871
triadic
#281871 #712818 #187128
tetradic
#281871 #711834 #617118 #187155
square
#281871 #711834 #617118 #187155
split-complementary
#281871 #715518 #347118
monochromatic
#090519 #160D3F #281871 #3A23A3 #4E30D3

Accessibility & contrast

On white

14.39
#281871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#281871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281871
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281871#FFFFFF#000000##FFFFFF
##2818711.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#00276F
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #281871;
/* rgb */ color: rgb(40, 24, 113);
/* oklch */ color: oklch(29.9% 0.142 281.7);
Tailwind
colors: {
  custom: {
    50: '#6d579b',
    500: '#281871',
    950: '#000000',
  },
}
SCSS
$custom: #281871;
$custom-light: #6d579b;
$custom-dark: #000000;
JSON
{
  "hex": "#281871",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 250.787,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29942,
    "c": 0.14241,
    "h": 281.7
  },
  "luminance": 0.02297
}

Semantic roles & 50–950 ramp

primary
#281871
secondary
#94A63E
accent
#E840CA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #281871

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

Preview Lab → · Contrast checker → · Palette generator →

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