#281042#281042

#281042 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.0% C 0.090 H 302.0°. Best body text is #FFFFFF at 16.89:1 contrast (WCAG AA passes).

Color values

HEX#281042
RGBrgb(40, 16, 66)
HSLhsl(269, 61%, 16%)
HSVhsv(269, 76%, 26%)
CMYKcmyk(39.4%, 75.8%, 0%, 74.1%)
CIE-LABlab(10.67, 24.09, -26.95)
CIE-LCHlch(10.67, 36.15, 311.78°)
OKLaboklab(24.05% 0.0479 -0.0767)
OKLCHoklch(24.05% 0.09 302)
XYZxyz(2.0435, 1.2150, 5.2801)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281042 #2A4210
analogous
#101142 #281042 #411042
triadic
#281042 #422810 #104228
tetradic
#281042 #421011 #2A4210 #104241
square
#281042 #421011 #2A4210 #104241
split-complementary
#281042 #424110 #114210
monochromatic
#0F0619 #0F0619 #281042 #461C73 #6428A5

Accessibility & contrast

On white

16.89
#281042 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#281042 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281042
16.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281042#FFFFFF#000000##FFFFFF
##2810421.0016.891.2416.89
#FFFFFF16.891.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C44
Deuteranopia (green-blind)
#001D41
Tritanopia (blue-blind)
#231B27
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #281042;
/* rgb */ color: rgb(40, 16, 66);
/* oklch */ color: oklch(24.0% 0.090 302.0);
Tailwind
colors: {
  custom: {
    50: '#655077',
    500: '#281042',
    950: '#000000',
  },
}
SCSS
$custom: #281042;
$custom-light: #655077;
$custom-dark: #000000;
JSON
{
  "hex": "#281042",
  "rgb": {
    "r": 40,
    "g": 16,
    "b": 66
  },
  "hsl": {
    "h": 268.8,
    "s": 60.976,
    "l": 16.078
  },
  "oklch": {
    "l": 0.24045,
    "c": 0.09039,
    "h": 302
  },
  "luminance": 0.01215
}

Semantic roles & 50–950 ramp

primary
#281042
secondary
#587C32
accent
#E44497
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #281042

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

Preview Lab → · Contrast checker → · Palette generator →

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