#281380#281380

#281380 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.166 H 279.4°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#281380
RGBrgb(40, 19, 128)
HSLhsl(252, 74%, 29%)
HSVhsv(252, 85%, 50%)
CMYKcmyk(68.8%, 85.2%, 0%, 49.8%)
CIE-LABlab(17.81, 41.67, -56.59)
CIE-LCHlch(17.81, 70.28, 306.37°)
OKLaboklab(31.03% 0.0272 -0.1634)
OKLCHoklch(31.03% 0.166 279.4)
XYZxyz(5.0030, 2.4750, 20.6320)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281380 #6B8013
analogous
#133580 #281380 #5F1380
triadic
#281380 #802813 #138028
tetradic
#281380 #801335 #6B8013 #13805F
square
#281380 #801335 #6B8013 #13805F
split-complementary
#281380 #805F13 #358013
monochromatic
#08041B #170B4B #281380 #391BB5 #502DE0

Accessibility & contrast

On white

14.05
#281380 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#281380 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281380
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281380#FFFFFF#000000##FFFFFF
##2813801.0014.051.5014.05
#FFFFFF14.051.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F83
Deuteranopia (green-blind)
#00277E
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #281380;
/* rgb */ color: rgb(40, 19, 128);
/* oklch */ color: oklch(31.0% 0.166 279.4);
Tailwind
colors: {
  custom: {
    50: '#7056a6',
    500: '#281380',
    950: '#000000',
  },
}
SCSS
$custom: #281380;
$custom-light: #7056a6;
$custom-dark: #000000;
JSON
{
  "hex": "#281380",
  "rgb": {
    "r": 40,
    "g": 19,
    "b": 128
  },
  "hsl": {
    "h": 251.56,
    "s": 74.15,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31029,
    "c": 0.16564,
    "h": 279.4
  },
  "luminance": 0.02475
}

Semantic roles & 50–950 ramp

primary
#281380
secondary
#9DB539
accent
#F137CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #281380

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

Preview Lab → · Contrast checker → · Palette generator →

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