#281268#281268

#281268 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.137 H 285.2°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#281268
RGBrgb(40, 18, 104)
HSLhsl(255, 70%, 24%)
HSVhsv(255, 83%, 41%)
CMYKcmyk(61.5%, 82.7%, 0%, 59.2%)
CIE-LABlab(14.86, 34.73, -45.95)
CIE-LCHlch(14.86, 57.59, 307.08°)
OKLaboklab(28.17% 0.0359 -0.1324)
OKLCHoklch(28.17% 0.137 285.2)
XYZxyz(3.5893, 1.8830, 13.2683)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281268 #526812
analogous
#122768 #281268 #531268
triadic
#281268 #682812 #126828
tetradic
#281268 #681227 #526812 #126853
square
#281268 #681227 #526812 #126853
split-complementary
#281268 #685312 #276812
monochromatic
#0A051A #140934 #281268 #3C1B9C #5024D0

Accessibility & contrast

On white

15.25
#281268 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#281268 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281268
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281268#FFFFFF#000000##FFFFFF
##2812681.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286A
Deuteranopia (green-blind)
#002366
Tritanopia (blue-blind)
#052B3D
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #281268;
/* rgb */ color: rgb(40, 18, 104);
/* oklch */ color: oklch(28.2% 0.137 285.2);
Tailwind
colors: {
  custom: {
    50: '#6b5394',
    500: '#281268',
    950: '#000000',
  },
}
SCSS
$custom: #281268;
$custom-light: #6b5394;
$custom-dark: #000000;
JSON
{
  "hex": "#281268",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 104
  },
  "hsl": {
    "h": 255.349,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.2817,
    "c": 0.13717,
    "h": 285.2
  },
  "luminance": 0.01883
}

Semantic roles & 50–950 ramp

primary
#281268
secondary
#85A036
accent
#ED3BC0
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #281268

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

Preview Lab → · Contrast checker → · Palette generator →

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