#281D52#281D52

#281D52 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.7% C 0.093 H 288.4°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#281D52
RGBrgb(40, 29, 82)
HSLhsl(252, 48%, 22%)
HSVhsv(252, 65%, 32%)
CMYKcmyk(51.2%, 64.6%, 0%, 67.8%)
CIE-LABlab(15.16, 20.77, -30.75)
CIE-LCHlch(15.16, 37.11, 304.04°)
OKLaboklab(27.74% 0.0292 -0.0878)
OKLCHoklch(27.74% 0.093 288.4)
XYZxyz(2.8370, 1.9389, 8.2058)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D52 #47521D
analogous
#1D2D52 #281D52 #431D52
triadic
#281D52 #52281D #1D5228
tetradic
#281D52 #521D2D #47521D #1D5243
square
#281D52 #521D2D #47521D #1D5243
split-complementary
#281D52 #52431D #2D521D
monochromatic
#0B0817 #120D25 #281D52 #3E2D7F #543DAC

Accessibility & contrast

On white

15.13
#281D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281D52
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D52#FFFFFF#000000##FFFFFF
##281D521.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002754
Deuteranopia (green-blind)
#002551
Tritanopia (blue-blind)
#1A2934
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #281d52;
/* rgb */ color: rgb(40, 29, 82);
/* oklch */ color: oklch(27.7% 0.093 288.4);
Tailwind
colors: {
  custom: {
    50: '#665983',
    500: '#281d52',
    950: '#000000',
  },
}
SCSS
$custom: #281d52;
$custom-light: #665983;
$custom-dark: #000000;
JSON
{
  "hex": "#281d52",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 82
  },
  "hsl": {
    "h": 252.453,
    "s": 47.748,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27735,
    "c": 0.09258,
    "h": 288.4
  },
  "luminance": 0.01939
}

Semantic roles & 50–950 ramp

primary
#281D52
secondary
#798744
accent
#D750BB
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030A
muted
#7A787C

Preview Lab

Preview with #281D52

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

Preview Lab → · Contrast checker → · Palette generator →

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