#281972#281972

#281972 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.2% C 0.143 H 281.3°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#281972
RGBrgb(40, 25, 114)
HSLhsl(250, 64%, 27%)
HSVhsv(250, 78%, 45%)
CMYKcmyk(64.9%, 78.1%, 0%, 55.3%)
CIE-LABlab(17.28, 34.15, -48.49)
CIE-LCHlch(17.28, 59.31, 305.16°)
OKLaboklab(30.19% 0.028 -0.1399)
OKLCHoklch(30.19% 0.143 281.3)
XYZxyz(4.2590, 2.3610, 16.1476)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281972 #637219
analogous
#193772 #281972 #541972
triadic
#281972 #722819 #197228
tetradic
#281972 #721937 #637219 #197254
square
#281972 #721937 #637219 #197254
split-complementary
#281972 #725419 #377219
monochromatic
#090619 #160E40 #281972 #3A24A4 #4E33D2

Accessibility & contrast

On white

14.26
#281972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281972
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281972#FFFFFF#000000##FFFFFF
##2819721.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002770
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #281972;
/* rgb */ color: rgb(40, 25, 114);
/* oklch */ color: oklch(30.2% 0.143 281.3);
Tailwind
colors: {
  custom: {
    50: '#6d589c',
    500: '#281972',
    950: '#000000',
  },
}
SCSS
$custom: #281972;
$custom-light: #6d589c;
$custom-dark: #000000;
JSON
{
  "hex": "#281972",
  "rgb": {
    "r": 40,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 250.112,
    "s": 64.029,
    "l": 27.255
  },
  "oklch": {
    "l": 0.3019,
    "c": 0.14264,
    "h": 281.3
  },
  "luminance": 0.02361
}

Semantic roles & 50–950 ramp

primary
#281972
secondary
#96A740
accent
#E741CB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #281972

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

Preview Lab → · Contrast checker → · Palette generator →

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