#281A51#281A51

#281A51 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.1% C 0.096 H 290.2°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#281A51
RGBrgb(40, 26, 81)
HSLhsl(255, 51%, 21%)
HSVhsv(255, 68%, 32%)
CMYKcmyk(50.6%, 67.9%, 0%, 68.2%)
CIE-LABlab(14.31, 22.47, -31.45)
CIE-LCHlch(14.31, 38.65, 305.54°)
OKLaboklab(27.08% 0.0332 -0.0899)
OKLCHoklch(27.08% 0.096 290.2)
XYZxyz(2.7293, 1.7839, 7.9835)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A51 #43511A
analogous
#1A2751 #281A51 #431A51
triadic
#281A51 #51281A #1A5128
tetradic
#281A51 #511A27 #43511A #1A5143
square
#281A51 #511A27 #43511A #1A5143
split-complementary
#281A51 #51431A #27511A
monochromatic
#0B0717 #110B23 #281A51 #3F297F #5638AE

Accessibility & contrast

On white

15.48
#281A51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#281A51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281A51
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A51#FFFFFF#000000##FFFFFF
##281A511.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002553
Deuteranopia (green-blind)
#002350
Tritanopia (blue-blind)
#1B2732
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #281a51;
/* rgb */ color: rgb(40, 26, 81);
/* oklch */ color: oklch(27.1% 0.096 290.2);
Tailwind
colors: {
  custom: {
    50: '#665782',
    500: '#281a51',
    950: '#000000',
  },
}
SCSS
$custom: #281a51;
$custom-light: #665782;
$custom-dark: #000000;
JSON
{
  "hex": "#281a51",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 81
  },
  "hsl": {
    "h": 255.273,
    "s": 51.402,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27084,
    "c": 0.09583,
    "h": 290.2
  },
  "luminance": 0.01784
}

Semantic roles & 50–950 ramp

primary
#281A51
secondary
#758740
accent
#DB4DB7
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030A
muted
#7A787C

Preview Lab

Preview with #281A51

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

Preview Lab → · Contrast checker → · Palette generator →

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