#281247#281247

#281247 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.8% C 0.094 H 298.3°. Best body text is #FFFFFF at 16.56:1 contrast (WCAG AA passes).

Color values

HEX#281247
RGBrgb(40, 18, 71)
HSLhsl(265, 60%, 17%)
HSVhsv(265, 75%, 28%)
CMYKcmyk(43.7%, 74.6%, 0%, 72.2%)
CIE-LABlab(11.54, 24.39, -29.04)
CIE-LCHlch(11.54, 37.92, 310.02°)
OKLaboklab(24.81% 0.0446 -0.0828)
OKLCHoklch(24.81% 0.094 298.3)
XYZxyz(2.2284, 1.3386, 6.1010)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281247 #314712
analogous
#121647 #281247 #431247
triadic
#281247 #472812 #124728
tetradic
#281247 #471216 #314712 #124743
square
#281247 #471216 #314712 #124743
split-complementary
#281247 #474312 #164712
monochromatic
#0E0618 #0E0618 #281247 #441E78 #5F2BA9

Accessibility & contrast

On white

16.56
#281247 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281247
16.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281247#FFFFFF#000000##FFFFFF
##2812471.0016.561.2716.56
#FFFFFF16.561.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F49
Deuteranopia (green-blind)
#001E46
Tritanopia (blue-blind)
#211E2A
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #281247;
/* rgb */ color: rgb(40, 18, 71);
/* oklch */ color: oklch(24.8% 0.094 298.3);
Tailwind
colors: {
  custom: {
    50: '#65517b',
    500: '#281247',
    950: '#000000',
  },
}
SCSS
$custom: #281247;
$custom-light: #65517b;
$custom-dark: #000000;
JSON
{
  "hex": "#281247",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 71
  },
  "hsl": {
    "h": 264.906,
    "s": 59.551,
    "l": 17.451
  },
  "oklch": {
    "l": 0.24811,
    "c": 0.09404,
    "h": 298.3
  },
  "luminance": 0.01339
}

Semantic roles & 50–950 ramp

primary
#281247
secondary
#618035
accent
#E345A1
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #281247

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

Preview Lab → · Contrast checker → · Palette generator →

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