#281174#281174

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

Color values

HEX#281174
RGBrgb(40, 17, 116)
HSLhsl(254, 74%, 26%)
HSVhsv(254, 85%, 45%)
CMYKcmyk(65.5%, 85.3%, 0%, 54.5%)
CIE-LABlab(16.07, 38.92, -51.78)
CIE-LCHlch(16.07, 64.78, 306.93°)
OKLaboklab(29.41% 0.0324 -0.1494)
OKLCHoklch(29.41% 0.153 282.2)
XYZxyz(4.2269, 2.1127, 16.7047)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281174 #5D7411
analogous
#112B74 #281174 #591174
triadic
#281174 #742811 #117428
tetradic
#281174 #74112B #5D7411 #117459
square
#281174 #74112B #5D7411 #117459
split-complementary
#281174 #745911 #2B7411
monochromatic
#09041B #16093F #281174 #3A19A9 #4D21DE

Accessibility & contrast

On white

14.76
#281174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#281174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281174
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281174#FFFFFF#000000##FFFFFF
##2811741.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B77
Deuteranopia (green-blind)
#002472
Tritanopia (blue-blind)
#003044
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #281174;
/* rgb */ color: rgb(40, 17, 116);
/* oklch */ color: oklch(29.4% 0.153 282.2);
Tailwind
colors: {
  custom: {
    50: '#6e549d',
    500: '#281174',
    950: '#000000',
  },
}
SCSS
$custom: #281174;
$custom-light: #6e549d;
$custom-dark: #000000;
JSON
{
  "hex": "#281174",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 253.939,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29414,
    "c": 0.15283,
    "h": 282.2
  },
  "luminance": 0.02113
}

Semantic roles & 50–950 ramp

primary
#281174
secondary
#90AB36
accent
#F137C6
background
#F7F4F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #281174

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

Preview Lab → · Contrast checker → · Palette generator →

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