#281370#281370

#281370 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.146 H 282.9°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#281370
RGBrgb(40, 19, 112)
HSLhsl(254, 71%, 26%)
HSVhsv(254, 83%, 44%)
CMYKcmyk(64.3%, 83%, 0%, 56.1%)
CIE-LABlab(15.93, 36.73, -49.41)
CIE-LCHlch(15.93, 61.56, 306.63°)
OKLaboklab(29.18% 0.0326 -0.1425)
OKLCHoklch(29.18% 0.146 282.9)
XYZxyz(4.0317, 2.0864, 15.5164)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281370 #5B7013
analogous
#132D70 #281370 #561370
triadic
#281370 #702813 #137028
tetradic
#281370 #70132D #5B7013 #137056
square
#281370 #70132D #5B7013 #137056
split-complementary
#281370 #705613 #2D7013
monochromatic
#09041A #150A3C #281370 #3B1CA4 #4D25D9

Accessibility & contrast

On white

14.82
#281370 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281370
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281370#FFFFFF#000000##FFFFFF
##2813701.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A73
Deuteranopia (green-blind)
#00246E
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #281370;
/* rgb */ color: rgb(40, 19, 112);
/* oklch */ color: oklch(29.2% 0.146 282.9);
Tailwind
colors: {
  custom: {
    50: '#6d549a',
    500: '#281370',
    950: '#000000',
  },
}
SCSS
$custom: #281370;
$custom-light: #6d549a;
$custom-dark: #000000;
JSON
{
  "hex": "#281370",
  "rgb": {
    "r": 40,
    "g": 19,
    "b": 112
  },
  "hsl": {
    "h": 253.548,
    "s": 70.992,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29184,
    "c": 0.14616,
    "h": 282.9
  },
  "luminance": 0.02087
}

Semantic roles & 50–950 ramp

primary
#281370
secondary
#8EA738
accent
#EE3AC5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #281370

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

Preview Lab → · Contrast checker → · Palette generator →

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