#281256#281256

#281256 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.114 H 291.3°. Best body text is #FFFFFF at 16.02:1 contrast (WCAG AA passes).

Color values

HEX#281256
RGBrgb(40, 18, 86)
HSLhsl(259, 65%, 20%)
HSVhsv(259, 79%, 34%)
CMYKcmyk(53.5%, 79.1%, 0%, 66.3%)
CIE-LABlab(12.96, 29.07, -37.06)
CIE-LCHlch(12.96, 47.10, 308.11°)
OKLaboklab(26.26% 0.0414 -0.1063)
OKLCHoklch(26.26% 0.114 291.3)
XYZxyz(2.7706, 1.5555, 8.9566)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281256 #405612
analogous
#121E56 #281256 #4A1256
triadic
#281256 #562812 #125628
tetradic
#281256 #56121E #405612 #12564A
square
#281256 #56121E #405612 #12564A
split-complementary
#281256 #564A12 #1E5612
monochromatic
#0C0519 #100723 #281256 #401D89 #5727BB

Accessibility & contrast

On white

16.02
#281256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#281256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281256
16.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281256#FFFFFF#000000##FFFFFF
##2812561.0016.021.3116.02
#FFFFFF16.021.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002358
Deuteranopia (green-blind)
#002055
Tritanopia (blue-blind)
#192433
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #281256;
/* rgb */ color: rgb(40, 18, 86);
/* oklch */ color: oklch(26.3% 0.114 291.3);
Tailwind
colors: {
  custom: {
    50: '#685286',
    500: '#281256',
    950: '#000000',
  },
}
SCSS
$custom: #281256;
$custom-light: #685286;
$custom-dark: #000000;
JSON
{
  "hex": "#281256",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 259.412,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26257,
    "c": 0.11411,
    "h": 291.3
  },
  "luminance": 0.01556
}

Semantic roles & 50–950 ramp

primary
#281256
secondary
#728F35
accent
#E83FB2
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #281256

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

Preview Lab → · Contrast checker → · Palette generator →

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