#281266#281266

#281266 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.9% C 0.135 H 285.8°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#281266
RGBrgb(40, 18, 102)
HSLhsl(256, 70%, 24%)
HSVhsv(256, 82%, 40%)
CMYKcmyk(60.8%, 82.4%, 0%, 60%)
CIE-LABlab(14.64, 34.10, -44.99)
CIE-LCHlch(14.64, 56.46, 307.16°)
OKLaboklab(27.95% 0.0366 -0.1296)
OKLCHoklch(27.95% 0.135 285.8)
XYZxyz(3.4889, 1.8428, 12.7397)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281266 #506612
analogous
#122666 #281266 #521266
triadic
#281266 #662812 #126628
tetradic
#281266 #661226 #506612 #126652
square
#281266 #661226 #506612 #126652
split-complementary
#281266 #665212 #266612
monochromatic
#0A051A #140932 #281266 #3C1B9A #5124CE

Accessibility & contrast

On white

15.34
#281266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#281266 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281266
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281266#FFFFFF#000000##FFFFFF
##2812661.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002768
Deuteranopia (green-blind)
#002264
Tritanopia (blue-blind)
#082A3C
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #281266;
/* rgb */ color: rgb(40, 18, 102);
/* oklch */ color: oklch(27.9% 0.135 285.8);
Tailwind
colors: {
  custom: {
    50: '#6b5393',
    500: '#281266',
    950: '#000000',
  },
}
SCSS
$custom: #281266;
$custom-light: #6b5393;
$custom-dark: #000000;
JSON
{
  "hex": "#281266",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 102
  },
  "hsl": {
    "h": 255.714,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.27949,
    "c": 0.13465,
    "h": 285.8
  },
  "luminance": 0.01843
}

Semantic roles & 50–950 ramp

primary
#281266
secondary
#839E36
accent
#ED3BBE
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #281266

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

Preview Lab → · Contrast checker → · Palette generator →

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