#281374#281374

#281374 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.151 H 281.9°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#281374
RGBrgb(40, 19, 116)
HSLhsl(253, 72%, 26%)
HSVhsv(253, 84%, 45%)
CMYKcmyk(65.5%, 83.6%, 0%, 54.5%)
CIE-LABlab(16.39, 37.97, -51.24)
CIE-LCHlch(16.39, 63.78, 306.54°)
OKLaboklab(29.64% 0.0313 -0.1478)
OKLCHoklch(29.64% 0.151 281.9)
XYZxyz(4.2593, 2.1775, 16.7155)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281374 #5F7413
analogous
#132F74 #281374 #591374
triadic
#281374 #742813 #137428
tetradic
#281374 #74132F #5F7413 #137459
square
#281374 #74132F #5F7413 #137459
split-complementary
#281374 #745913 #2F7413
monochromatic
#09041A #160A3F #281374 #3A1CA9 #4D26DB

Accessibility & contrast

On white

14.63
#281374 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281374
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281374#FFFFFF#000000##FFFFFF
##2813741.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281374;
/* rgb */ color: rgb(40, 19, 116);
/* oklch */ color: oklch(29.6% 0.151 281.9);
Tailwind
colors: {
  custom: {
    50: '#6e559d',
    500: '#281374',
    950: '#000000',
  },
}
SCSS
$custom: #281374;
$custom-light: #6e559d;
$custom-dark: #000000;
JSON
{
  "hex": "#281374",
  "rgb": {
    "r": 40,
    "g": 19,
    "b": 116
  },
  "hsl": {
    "h": 252.99,
    "s": 71.852,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29638,
    "c": 0.1511,
    "h": 281.9
  },
  "luminance": 0.02178
}

Semantic roles & 50–950 ramp

primary
#281374
secondary
#92AA38
accent
#EF39C7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #281374

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

Preview Lab → · Contrast checker → · Palette generator →

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