#281054#281054

#281054 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.114 H 292.6°. Best body text is #FFFFFF at 16.25:1 contrast (WCAG AA passes).

Color values

HEX#281054
RGBrgb(40, 16, 84)
HSLhsl(261, 68%, 20%)
HSVhsv(261, 81%, 33%)
CMYKcmyk(52.4%, 81%, 0%, 67.1%)
CIE-LABlab(12.36, 29.55, -36.67)
CIE-LCHlch(12.36, 47.10, 308.87°)
OKLaboklab(25.78% 0.0439 -0.1052)
OKLCHoklch(25.78% 0.114 292.6)
XYZxyz(2.6601, 1.4617, 8.5278)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281054 #3C5410
analogous
#101A54 #281054 #4A1054
triadic
#281054 #542810 #105428
tetradic
#281054 #54101A #3C5410 #10544A
square
#281054 #54101A #3C5410 #10544A
split-complementary
#281054 #544A10 #1A5410
monochromatic
#0C051A #100621 #281054 #401A87 #5924BB

Accessibility & contrast

On white

16.25
#281054 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#281054 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281054
16.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281054#FFFFFF#000000##FFFFFF
##2810541.0016.251.2916.25
#FFFFFF16.251.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002156
Deuteranopia (green-blind)
#001F53
Tritanopia (blue-blind)
#1A2231
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #281054;
/* rgb */ color: rgb(40, 16, 84);
/* oklch */ color: oklch(25.8% 0.114 292.6);
Tailwind
colors: {
  custom: {
    50: '#675185',
    500: '#281054',
    950: '#000000',
  },
}
SCSS
$custom: #281054;
$custom-light: #675185;
$custom-dark: #000000;
JSON
{
  "hex": "#281054",
  "rgb": {
    "r": 40,
    "g": 16,
    "b": 84
  },
  "hsl": {
    "h": 261.176,
    "s": 68,
    "l": 19.608
  },
  "oklch": {
    "l": 0.25776,
    "c": 0.11399,
    "h": 292.6
  },
  "luminance": 0.01462
}

Semantic roles & 50–950 ramp

primary
#281054
secondary
#6D8E32
accent
#EB3DAD
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #281054

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

Preview Lab → · Contrast checker → · Palette generator →

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