#281B59#281B59

#281B59 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.0% C 0.106 H 287.1°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#281B59
RGBrgb(40, 27, 89)
HSLhsl(253, 53%, 23%)
HSVhsv(253, 70%, 35%)
CMYKcmyk(55.1%, 69.7%, 0%, 65.1%)
CIE-LABlab(15.26, 24.51, -35.33)
CIE-LCHlch(15.26, 43.00, 304.75°)
OKLaboklab(27.99% 0.0311 -0.1013)
OKLCHoklch(27.99% 0.106 287.1)
XYZxyz(3.0696, 1.9561, 9.6651)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B59 #4C591B
analogous
#1B2D59 #281B59 #471B59
triadic
#281B59 #59281B #1B5928
tetradic
#281B59 #591B2D #4C591B #1B5947
square
#281B59 #591B2D #4C591B #1B5947
split-complementary
#281B59 #59471B #2D591B
monochromatic
#0B0717 #130D2A #281B59 #3D2988 #5237B7

Accessibility & contrast

On white

15.09
#281B59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#281B59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281B59
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B59#FFFFFF#000000##FFFFFF
##281B591.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285B
Deuteranopia (green-blind)
#002458
Tritanopia (blue-blind)
#162A37
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #281b59;
/* rgb */ color: rgb(40, 27, 89);
/* oklch */ color: oklch(28.0% 0.106 287.1);
Tailwind
colors: {
  custom: {
    50: '#675888',
    500: '#281b59',
    950: '#000000',
  },
}
SCSS
$custom: #281b59;
$custom-light: #675888;
$custom-dark: #000000;
JSON
{
  "hex": "#281b59",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 89
  },
  "hsl": {
    "h": 252.581,
    "s": 53.448,
    "l": 22.745
  },
  "oklch": {
    "l": 0.2799,
    "c": 0.10598,
    "h": 287.1
  },
  "luminance": 0.01956
}

Semantic roles & 50–950 ramp

primary
#281B59
secondary
#7E8F41
accent
#DD4BBE
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030B
muted
#7A787C

Preview Lab

Preview with #281B59

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

Preview Lab → · Contrast checker → · Palette generator →

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