#281264#281264

#281264 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.7% C 0.132 H 286.4°. Best body text is #FFFFFF at 15.43:1 contrast (WCAG AA passes).

Color values

HEX#281264
RGBrgb(40, 18, 100)
HSLhsl(256, 69%, 23%)
HSVhsv(256, 82%, 39%)
CMYKcmyk(60%, 82%, 0%, 60.8%)
CIE-LABlab(14.42, 33.48, -44.03)
CIE-LCHlch(14.42, 55.31, 307.24°)
OKLaboklab(27.73% 0.0372 -0.1268)
OKLCHoklch(27.73% 0.132 286.4)
XYZxyz(3.3909, 1.8036, 12.2236)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281264 #4E6412
analogous
#122564 #281264 #511264
triadic
#281264 #642812 #126428
tetradic
#281264 #641225 #4E6412 #126451
square
#281264 #641225 #4E6412 #126451
split-complementary
#281264 #645112 #256412
monochromatic
#0A051A #130930 #281264 #3D1B98 #5125CC

Accessibility & contrast

On white

15.43
#281264 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#281264 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281264
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281264#FFFFFF#000000##FFFFFF
##2812641.0015.431.3615.43
#FFFFFF15.431.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002666
Deuteranopia (green-blind)
#002263
Tritanopia (blue-blind)
#0B2A3A
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #281264;
/* rgb */ color: rgb(40, 18, 100);
/* oklch */ color: oklch(27.7% 0.132 286.4);
Tailwind
colors: {
  custom: {
    50: '#6a5391',
    500: '#281264',
    950: '#000000',
  },
}
SCSS
$custom: #281264;
$custom-light: #6a5391;
$custom-dark: #000000;
JSON
{
  "hex": "#281264",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 100
  },
  "hsl": {
    "h": 256.098,
    "s": 69.492,
    "l": 23.137
  },
  "oklch": {
    "l": 0.27731,
    "c": 0.13213,
    "h": 286.4
  },
  "luminance": 0.01804
}

Semantic roles & 50–950 ramp

primary
#281264
secondary
#819C36
accent
#EC3BBD
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #281264

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

Preview Lab → · Contrast checker → · Palette generator →

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