#281248#281248

#281248 is a very dark, moderate violet. Relative luminance 0.014; OKLCH L 24.9% C 0.095 H 297.7°. Best body text is #FFFFFF at 16.53:1 contrast (WCAG AA passes).

Color values

HEX#281248
RGBrgb(40, 18, 72)
HSLhsl(264, 60%, 18%)
HSVhsv(264, 75%, 28%)
CMYKcmyk(44.4%, 75%, 0%, 71.8%)
CIE-LABlab(11.63, 24.69, -29.60)
CIE-LCHlch(11.63, 38.55, 309.84°)
OKLaboklab(24.9% 0.0444 -0.0844)
OKLCHoklch(24.9% 0.095 297.7)
XYZxyz(2.2608, 1.3516, 6.2714)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281248 #324812
analogous
#121748 #281248 #431248
triadic
#281248 #482812 #124828
tetradic
#281248 #481217 #324812 #124843
square
#281248 #481217 #324812 #124843
split-complementary
#281248 #484312 #174812
monochromatic
#0E0618 #0E0618 #281248 #431E79 #5E2AAA

Accessibility & contrast

On white

16.53
#281248 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#281248 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281248
16.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281248#FFFFFF#000000##FFFFFF
##2812481.0016.531.2716.53
#FFFFFF16.531.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4A
Deuteranopia (green-blind)
#001E47
Tritanopia (blue-blind)
#201F2B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #281248;
/* rgb */ color: rgb(40, 18, 72);
/* oklch */ color: oklch(24.9% 0.095 297.7);
Tailwind
colors: {
  custom: {
    50: '#65517b',
    500: '#281248',
    950: '#000000',
  },
}
SCSS
$custom: #281248;
$custom-light: #65517b;
$custom-dark: #000000;
JSON
{
  "hex": "#281248",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 72
  },
  "hsl": {
    "h": 264.444,
    "s": 60,
    "l": 17.647
  },
  "oklch": {
    "l": 0.24902,
    "c": 0.09541,
    "h": 297.7
  },
  "luminance": 0.01352
}

Semantic roles & 50–950 ramp

primary
#281248
secondary
#628135
accent
#E345A3
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #281248

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

Preview Lab → · Contrast checker → · Palette generator →

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