#281771#281771

#281771 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.8% C 0.143 H 281.9°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#281771
RGBrgb(40, 23, 113)
HSLhsl(251, 66%, 27%)
HSVhsv(251, 80%, 44%)
CMYKcmyk(64.6%, 79.6%, 0%, 55.7%)
CIE-LABlab(16.78, 34.94, -48.67)
CIE-LCHlch(16.78, 59.91, 305.68°)
OKLaboklab(29.81% 0.0297 -0.1404)
OKLCHoklch(29.81% 0.143 281.9)
XYZxyz(4.1612, 2.2559, 15.8357)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281771 #607117
analogous
#173371 #281771 #551771
triadic
#281771 #712817 #177128
tetradic
#281771 #711733 #607117 #177155
square
#281771 #711733 #607117 #177155
split-complementary
#281771 #715517 #337117
monochromatic
#090519 #160D3E #281771 #3A21A4 #4D2ED4

Accessibility & contrast

On white

14.47
#281771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#281771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281771
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281771#FFFFFF#000000##FFFFFF
##2817711.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.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: #281771;
/* rgb */ color: rgb(40, 23, 113);
/* oklch */ color: oklch(29.8% 0.143 281.9);
Tailwind
colors: {
  custom: {
    50: '#6d579b',
    500: '#281771',
    950: '#000000',
  },
}
SCSS
$custom: #281771;
$custom-light: #6d579b;
$custom-dark: #000000;
JSON
{
  "hex": "#281771",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 251.333,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29805,
    "c": 0.14347,
    "h": 281.9
  },
  "luminance": 0.02256
}

Semantic roles & 50–950 ramp

primary
#281771
secondary
#93A73D
accent
#E93FC9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #281771

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

Preview Lab → · Contrast checker → · Palette generator →

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