#281478#281478

#281478 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.155 H 280.9°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#281478
RGBrgb(40, 20, 120)
HSLhsl(252, 71%, 27%)
HSVhsv(252, 83%, 47%)
CMYKcmyk(66.7%, 83.3%, 0%, 52.9%)
CIE-LABlab(17.02, 38.73, -52.78)
CIE-LCHlch(17.02, 65.46, 306.28°)
OKLaboklab(30.21% 0.0294 -0.1523)
OKLCHoklch(30.21% 0.155 280.9)
XYZxyz(4.5143, 2.3071, 17.9731)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281478 #647814
analogous
#143278 #281478 #5A1478
triadic
#281478 #782814 #147828
tetradic
#281478 #781432 #647814 #14785A
square
#281478 #781432 #647814 #14785A
split-complementary
#281478 #785A14 #327814
monochromatic
#09041A #170B44 #281478 #391DAC #4E2BDC

Accessibility & contrast

On white

14.37
#281478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#281478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281478
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281478#FFFFFF#000000##FFFFFF
##2814781.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7B
Deuteranopia (green-blind)
#002676
Tritanopia (blue-blind)
#003346
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #281478;
/* rgb */ color: rgb(40, 20, 120);
/* oklch */ color: oklch(30.2% 0.155 280.9);
Tailwind
colors: {
  custom: {
    50: '#6e55a0',
    500: '#281478',
    950: '#000000',
  },
}
SCSS
$custom: #281478;
$custom-light: #6e55a0;
$custom-dark: #000000;
JSON
{
  "hex": "#281478",
  "rgb": {
    "r": 40,
    "g": 20,
    "b": 120
  },
  "hsl": {
    "h": 252,
    "s": 71.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30212,
    "c": 0.15512,
    "h": 280.9
  },
  "luminance": 0.02307
}

Semantic roles & 50–950 ramp

primary
#281478
secondary
#97AE3A
accent
#EE3ACA
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #281478

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

Preview Lab → · Contrast checker → · Palette generator →

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