#281241#281241

#281241 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.3% C 0.086 H 301.9°. Best body text is #FFFFFF at 16.76:1 contrast (WCAG AA passes).

Color values

HEX#281241
RGBrgb(40, 18, 65)
HSLhsl(268, 57%, 16%)
HSVhsv(268, 72%, 25%)
CMYKcmyk(38.5%, 72.3%, 0%, 74.5%)
CIE-LABlab(11.03, 22.56, -25.66)
CIE-LCHlch(11.03, 34.17, 311.32°)
OKLaboklab(24.28% 0.0453 -0.0729)
OKLCHoklch(24.28% 0.086 301.9)
XYZxyz(2.0453, 1.2654, 5.1365)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281241 #2B4112
analogous
#121441 #281241 #401241
triadic
#281241 #412812 #124128
tetradic
#281241 #411214 #2B4112 #124140
square
#281241 #411214 #2B4112 #124140
split-complementary
#281241 #414012 #144112
monochromatic
#0F0718 #0F0718 #281241 #451F71 #632DA1

Accessibility & contrast

On white

16.76
#281241 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#281241 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281241
16.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281241#FFFFFF#000000##FFFFFF
##2812411.0016.761.2516.76
#FFFFFF16.761.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D42
Deuteranopia (green-blind)
#031D40
Tritanopia (blue-blind)
#231C27
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #281241;
/* rgb */ color: rgb(40, 18, 65);
/* oklch */ color: oklch(24.3% 0.086 301.9);
Tailwind
colors: {
  custom: {
    50: '#645176',
    500: '#281241',
    950: '#000000',
  },
}
SCSS
$custom: #281241;
$custom-light: #645176;
$custom-dark: #000000;
JSON
{
  "hex": "#281241",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 65
  },
  "hsl": {
    "h": 268.085,
    "s": 56.627,
    "l": 16.275
  },
  "oklch": {
    "l": 0.2428,
    "c": 0.0858,
    "h": 301.9
  },
  "luminance": 0.01265
}

Semantic roles & 50–950 ramp

primary
#281241
secondary
#5A7A35
accent
#E04899
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #281241

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

Preview Lab → · Contrast checker → · Palette generator →

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