#281572#281572

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

Color values

HEX#281572
RGBrgb(40, 21, 114)
HSLhsl(252, 69%, 26%)
HSVhsv(252, 82%, 45%)
CMYKcmyk(64.9%, 81.6%, 0%, 55.3%)
CIE-LABlab(16.51, 36.34, -49.75)
CIE-LCHlch(16.51, 61.60, 306.15°)
OKLaboklab(29.65% 0.0307 -0.1435)
OKLCHoklch(29.65% 0.147 282.1)
XYZxyz(4.1796, 2.2021, 16.1211)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281572 #5F7215
analogous
#153172 #281572 #571572
triadic
#281572 #722815 #157228
tetradic
#281572 #721531 #5F7215 #157257
square
#281572 #721531 #5F7215 #157257
split-complementary
#281572 #725715 #317215
monochromatic
#09051A #160B3E #281572 #3A1FA6 #4D2AD8

Accessibility & contrast

On white

14.58
#281572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281572
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281572#FFFFFF#000000##FFFFFF
##2815721.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C75
Deuteranopia (green-blind)
#002670
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #281572;
/* rgb */ color: rgb(40, 21, 114);
/* oklch */ color: oklch(29.7% 0.147 282.1);
Tailwind
colors: {
  custom: {
    50: '#6d569c',
    500: '#281572',
    950: '#000000',
  },
}
SCSS
$custom: #281572;
$custom-light: #6d569c;
$custom-dark: #000000;
JSON
{
  "hex": "#281572",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 252.258,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29655,
    "c": 0.14675,
    "h": 282.1
  },
  "luminance": 0.02202
}

Semantic roles & 50–950 ramp

primary
#281572
secondary
#92A83B
accent
#EC3CC8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #281572

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

Preview Lab → · Contrast checker → · Palette generator →

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