#281971#281971

#281971 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.141 H 281.5°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#281971
RGBrgb(40, 25, 113)
HSLhsl(250, 64%, 27%)
HSVhsv(250, 78%, 44%)
CMYKcmyk(64.6%, 77.9%, 0%, 55.7%)
CIE-LABlab(17.17, 33.82, -48.02)
CIE-LCHlch(17.17, 58.73, 305.16°)
OKLaboklab(30.08% 0.0282 -0.1385)
OKLCHoklch(30.08% 0.141 281.5)
XYZxyz(4.2024, 2.3383, 15.8495)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281971 #627119
analogous
#193671 #281971 #541971
triadic
#281971 #712819 #197128
tetradic
#281971 #711936 #627119 #197154
square
#281971 #711936 #627119 #197154
split-complementary
#281971 #715419 #367119
monochromatic
#090619 #160E3F #281971 #3A24A3 #4E33D2

Accessibility & contrast

On white

14.31
#281971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#281971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281971
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281971#FFFFFF#000000##FFFFFF
##2819711.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281971;
/* rgb */ color: rgb(40, 25, 113);
/* oklch */ color: oklch(30.1% 0.141 281.5);
Tailwind
colors: {
  custom: {
    50: '#6c589b',
    500: '#281971',
    950: '#000000',
  },
}
SCSS
$custom: #281971;
$custom-light: #6c589b;
$custom-dark: #000000;
JSON
{
  "hex": "#281971",
  "rgb": {
    "r": 40,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 250.227,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30083,
    "c": 0.14134,
    "h": 281.5
  },
  "luminance": 0.02339
}

Semantic roles & 50–950 ramp

primary
#281971
secondary
#95A640
accent
#E741CB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #281971

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

Preview Lab → · Contrast checker → · Palette generator →

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