#281372#281372

#281372 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.149 H 282.4°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#281372
RGBrgb(40, 19, 114)
HSLhsl(253, 71%, 26%)
HSVhsv(253, 83%, 45%)
CMYKcmyk(64.9%, 83.3%, 0%, 55.3%)
CIE-LABlab(16.16, 37.35, -50.33)
CIE-LCHlch(16.16, 62.67, 306.58°)
OKLaboklab(29.41% 0.0319 -0.1452)
OKLCHoklch(29.41% 0.149 282.4)
XYZxyz(4.1443, 2.1315, 16.1094)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281372 #5D7213
analogous
#132D72 #281372 #571372
triadic
#281372 #722813 #137228
tetradic
#281372 #72132D #5D7213 #137257
square
#281372 #72132D #5D7213 #137257
split-complementary
#281372 #725713 #2D7213
monochromatic
#09041A #160A3E #281372 #3A1CA6 #4D25DB

Accessibility & contrast

On white

14.72
#281372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#281372 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281372
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281372#FFFFFF#000000##FFFFFF
##2813721.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B75
Deuteranopia (green-blind)
#002570
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #281372;
/* rgb */ color: rgb(40, 19, 114);
/* oklch */ color: oklch(29.4% 0.149 282.4);
Tailwind
colors: {
  custom: {
    50: '#6d549c',
    500: '#281372',
    950: '#000000',
  },
}
SCSS
$custom: #281372;
$custom-light: #6d549c;
$custom-dark: #000000;
JSON
{
  "hex": "#281372",
  "rgb": {
    "r": 40,
    "g": 19,
    "b": 114
  },
  "hsl": {
    "h": 253.263,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29411,
    "c": 0.14864,
    "h": 282.4
  },
  "luminance": 0.02132
}

Semantic roles & 50–950 ramp

primary
#281372
secondary
#90A938
accent
#EE3AC6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #281372

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

Preview Lab → · Contrast checker → · Palette generator →

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