#281574#281574

#281574 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.9% C 0.149 H 281.6°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#281574
RGBrgb(40, 21, 116)
HSLhsl(252, 69%, 27%)
HSVhsv(252, 82%, 45%)
CMYKcmyk(65.5%, 81.9%, 0%, 54.5%)
CIE-LABlab(16.74, 36.97, -50.67)
CIE-LCHlch(16.74, 62.72, 306.12°)
OKLaboklab(29.88% 0.0301 -0.1462)
OKLCHoklch(29.88% 0.149 281.6)
XYZxyz(4.2946, 2.2481, 16.7272)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281574 #617415
analogous
#153274 #281574 #581574
triadic
#281574 #742815 #157428
tetradic
#281574 #741532 #617415 #157458
square
#281574 #741532 #617415 #157458
split-complementary
#281574 #745815 #327415
monochromatic
#09051A #160C40 #281574 #3A1EA8 #4E2BD9

Accessibility & contrast

On white

14.49
#281574 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281574
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281574#FFFFFF#000000##FFFFFF
##2815741.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C77
Deuteranopia (green-blind)
#002672
Tritanopia (blue-blind)
#003144
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #281574;
/* rgb */ color: rgb(40, 21, 116);
/* oklch */ color: oklch(29.9% 0.149 281.6);
Tailwind
colors: {
  custom: {
    50: '#6d569d',
    500: '#281574',
    950: '#000000',
  },
}
SCSS
$custom: #281574;
$custom-light: #6d569d;
$custom-dark: #000000;
JSON
{
  "hex": "#281574",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 116
  },
  "hsl": {
    "h": 252,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29879,
    "c": 0.14925,
    "h": 281.6
  },
  "luminance": 0.02248
}

Semantic roles & 50–950 ramp

primary
#281574
secondary
#94AA3B
accent
#EC3CC9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #281574

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

Preview Lab → · Contrast checker → · Palette generator →

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