#281257#281257

#281257 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.115 H 290.9°. Best body text is #FFFFFF at 15.98:1 contrast (WCAG AA passes).

Color values

HEX#281257
RGBrgb(40, 18, 87)
HSLhsl(259, 66%, 21%)
HSVhsv(259, 79%, 34%)
CMYKcmyk(54%, 79.3%, 0%, 65.9%)
CIE-LABlab(13.06, 29.38, -37.57)
CIE-LCHlch(13.06, 47.69, 308.03°)
OKLaboklab(26.36% 0.0411 -0.1079)
OKLCHoklch(26.36% 0.115 290.9)
XYZxyz(2.8112, 1.5717, 9.1702)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281257 #415712
analogous
#121F57 #281257 #4A1257
triadic
#281257 #572812 #125728
tetradic
#281257 #57121F #415712 #12574A
square
#281257 #57121F #415712 #12574A
split-complementary
#281257 #574A12 #1F5712
monochromatic
#0C0519 #110824 #281257 #3F1C8A #5727BC

Accessibility & contrast

On white

15.98
#281257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281257
15.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281257#FFFFFF#000000##FFFFFF
##2812571.0015.981.3115.98
#FFFFFF15.981.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002359
Deuteranopia (green-blind)
#002056
Tritanopia (blue-blind)
#182433
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #281257;
/* rgb */ color: rgb(40, 18, 87);
/* oklch */ color: oklch(26.4% 0.115 290.9);
Tailwind
colors: {
  custom: {
    50: '#685287',
    500: '#281257',
    950: '#000000',
  },
}
SCSS
$custom: #281257;
$custom-light: #685287;
$custom-dark: #000000;
JSON
{
  "hex": "#281257",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 87
  },
  "hsl": {
    "h": 259.13,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.26358,
    "c": 0.11542,
    "h": 290.9
  },
  "luminance": 0.01572
}

Semantic roles & 50–950 ramp

primary
#281257
secondary
#739035
accent
#E93FB3
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #281257

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

Preview Lab → · Contrast checker → · Palette generator →

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