#281246#281246

#281246 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.7% C 0.093 H 298.8°. Best body text is #FFFFFF at 16.60:1 contrast (WCAG AA passes).

Color values

HEX#281246
RGBrgb(40, 18, 70)
HSLhsl(265, 59%, 17%)
HSVhsv(265, 74%, 27%)
CMYKcmyk(42.9%, 74.3%, 0%, 72.5%)
CIE-LABlab(11.46, 24.08, -28.49)
CIE-LCHlch(11.46, 37.30, 310.21°)
OKLaboklab(24.72% 0.0447 -0.0812)
OKLCHoklch(24.72% 0.093 298.8)
XYZxyz(2.1966, 1.3259, 5.9334)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281246 #304612
analogous
#121646 #281246 #421246
triadic
#281246 #462812 #124628
tetradic
#281246 #461216 #304612 #124642
square
#281246 #461216 #304612 #124642
split-complementary
#281246 #464212 #164612
monochromatic
#0E0618 #0E0618 #281246 #441F77 #602BA7

Accessibility & contrast

On white

16.60
#281246 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281246
16.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281246#FFFFFF#000000##FFFFFF
##2812461.0016.601.2716.60
#FFFFFF16.601.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E48
Deuteranopia (green-blind)
#001E45
Tritanopia (blue-blind)
#211E2A
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #281246;
/* rgb */ color: rgb(40, 18, 70);
/* oklch */ color: oklch(24.7% 0.093 298.8);
Tailwind
colors: {
  custom: {
    50: '#65517a',
    500: '#281246',
    950: '#000000',
  },
}
SCSS
$custom: #281246;
$custom-light: #65517a;
$custom-dark: #000000;
JSON
{
  "hex": "#281246",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 70
  },
  "hsl": {
    "h": 265.385,
    "s": 59.091,
    "l": 17.255
  },
  "oklch": {
    "l": 0.2472,
    "c": 0.09267,
    "h": 298.8
  },
  "luminance": 0.01326
}

Semantic roles & 50–950 ramp

primary
#281246
secondary
#607F35
accent
#E246A0
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #281246

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

Preview Lab → · Contrast checker → · Palette generator →

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