#281C59#281C59

#281C59 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.2% C 0.105 H 286.7°. Best body text is #FFFFFF at 14.99:1 contrast (WCAG AA passes).

Color values

HEX#281C59
RGBrgb(40, 28, 89)
HSLhsl(252, 52%, 23%)
HSVhsv(252, 69%, 35%)
CMYKcmyk(55.1%, 68.5%, 0%, 65.1%)
CIE-LABlab(15.50, 23.85, -34.93)
CIE-LCHlch(15.50, 42.29, 304.33°)
OKLaboklab(28.17% 0.03 -0.1001)
OKLCHoklch(28.17% 0.105 286.7)
XYZxyz(3.0930, 2.0027, 9.6729)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C59 #4D591C
analogous
#1C2E59 #281C59 #461C59
triadic
#281C59 #59281C #1C5928
tetradic
#281C59 #591C2E #4D591C #1C5946
square
#281C59 #591C2E #4D591C #1C5946
split-complementary
#281C59 #59461C #2E591C
monochromatic
#0A0717 #130D2A #281C59 #3D2B88 #5239B6

Accessibility & contrast

On white

14.99
#281C59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#281C59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281C59
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C59#FFFFFF#000000##FFFFFF
##281C591.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285B
Deuteranopia (green-blind)
#002558
Tritanopia (blue-blind)
#162B37
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #281c59;
/* rgb */ color: rgb(40, 28, 89);
/* oklch */ color: oklch(28.2% 0.105 286.7);
Tailwind
colors: {
  custom: {
    50: '#675988',
    500: '#281c59',
    950: '#000000',
  },
}
SCSS
$custom: #281c59;
$custom-light: #675988;
$custom-dark: #000000;
JSON
{
  "hex": "#281c59",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 89
  },
  "hsl": {
    "h": 251.803,
    "s": 52.137,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28169,
    "c": 0.10452,
    "h": 286.7
  },
  "luminance": 0.02003
}

Semantic roles & 50–950 ramp

primary
#281C59
secondary
#808F42
accent
#DC4CBF
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030B
muted
#7A787C

Preview Lab

Preview with #281C59

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

Preview Lab → · Contrast checker → · Palette generator →

#281C59 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva