#281A52#281A52

#281A52 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.2% C 0.097 H 289.9°. Best body text is #FFFFFF at 15.44:1 contrast (WCAG AA passes).

Color values

HEX#281A52
RGBrgb(40, 26, 82)
HSLhsl(255, 52%, 21%)
HSVhsv(255, 68%, 32%)
CMYKcmyk(51.2%, 68.3%, 0%, 67.8%)
CIE-LABlab(14.39, 22.80, -31.99)
CIE-LCHlch(14.39, 39.29, 305.48°)
OKLaboklab(27.17% 0.0331 -0.0915)
OKLCHoklch(27.17% 0.097 289.9)
XYZxyz(2.7670, 1.7990, 8.1825)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A52 #44521A
analogous
#1A2852 #281A52 #441A52
triadic
#281A52 #52281A #1A5228
tetradic
#281A52 #521A28 #44521A #1A5244
square
#281A52 #521A28 #44521A #1A5244
split-complementary
#281A52 #52441A #28521A
monochromatic
#0B0717 #110B24 #281A52 #3F2980 #5537AF

Accessibility & contrast

On white

15.44
#281A52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281A52
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A52#FFFFFF#000000##FFFFFF
##281A521.0015.441.3615.44
#FFFFFF15.441.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002554
Deuteranopia (green-blind)
#002351
Tritanopia (blue-blind)
#1B2733
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #281a52;
/* rgb */ color: rgb(40, 26, 82);
/* oklch */ color: oklch(27.2% 0.097 289.9);
Tailwind
colors: {
  custom: {
    50: '#665783',
    500: '#281a52',
    950: '#000000',
  },
}
SCSS
$custom: #281a52;
$custom-light: #665783;
$custom-dark: #000000;
JSON
{
  "hex": "#281a52",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 82
  },
  "hsl": {
    "h": 255,
    "s": 51.852,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27173,
    "c": 0.0973,
    "h": 289.9
  },
  "luminance": 0.01799
}

Semantic roles & 50–950 ramp

primary
#281A52
secondary
#768840
accent
#DB4CB8
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #281A52

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

Preview Lab → · Contrast checker → · Palette generator →

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