#281B53#281B53

#281B53 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.4% C 0.097 H 289.0°. Best body text is #FFFFFF at 15.31:1 contrast (WCAG AA passes).

Color values

HEX#281B53
RGBrgb(40, 27, 83)
HSLhsl(254, 51%, 22%)
HSVhsv(254, 67%, 33%)
CMYKcmyk(51.8%, 67.5%, 0%, 67.5%)
CIE-LABlab(14.73, 22.47, -32.13)
CIE-LCHlch(14.73, 39.21, 304.97°)
OKLaboklab(27.45% 0.0317 -0.0919)
OKLCHoklch(27.45% 0.097 289)
XYZxyz(2.8279, 1.8594, 8.3918)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B53 #46531B
analogous
#1B2A53 #281B53 #441B53
triadic
#281B53 #53281B #1B5328
tetradic
#281B53 #531B2A #46531B #1B5344
square
#281B53 #531B2A #46531B #1B5344
split-complementary
#281B53 #53441B #2A531B
monochromatic
#0B0817 #120C25 #281B53 #3E2A81 #5539AF

Accessibility & contrast

On white

15.31
#281B53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#281B53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281B53
15.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B53#FFFFFF#000000##FFFFFF
##281B531.0015.311.3715.31
#FFFFFF15.311.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002655
Deuteranopia (green-blind)
#002452
Tritanopia (blue-blind)
#1A2834
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #281b53;
/* rgb */ color: rgb(40, 27, 83);
/* oklch */ color: oklch(27.4% 0.097 289.0);
Tailwind
colors: {
  custom: {
    50: '#665884',
    500: '#281b53',
    950: '#000000',
  },
}
SCSS
$custom: #281b53;
$custom-light: #665884;
$custom-dark: #000000;
JSON
{
  "hex": "#281b53",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 83
  },
  "hsl": {
    "h": 253.929,
    "s": 50.909,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27445,
    "c": 0.09722,
    "h": 289
  },
  "luminance": 0.0186
}

Semantic roles & 50–950 ramp

primary
#281B53
secondary
#788941
accent
#DA4DBA
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #281B53

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

Preview Lab → · Contrast checker → · Palette generator →

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