#281D53#281D53

#281D53 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 27.8% C 0.094 H 288.1°. Best body text is #FFFFFF at 15.10:1 contrast (WCAG AA passes).

Color values

HEX#281D53
RGBrgb(40, 29, 83)
HSLhsl(252, 48%, 22%)
HSVhsv(252, 65%, 33%)
CMYKcmyk(51.8%, 65.1%, 0%, 67.5%)
CIE-LABlab(15.25, 21.12, -31.29)
CIE-LCHlch(15.25, 37.75, 304.01°)
OKLaboklab(27.82% 0.0292 -0.0894)
OKLCHoklch(27.82% 0.094 288.1)
XYZxyz(2.8753, 1.9543, 8.4076)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D53 #48531D
analogous
#1D2D53 #281D53 #431D53
triadic
#281D53 #53281D #1D5328
tetradic
#281D53 #531D2D #48531D #1D5343
square
#281D53 #531D2D #48531D #1D5343
split-complementary
#281D53 #53431D #2D531D
monochromatic
#0B0817 #120D26 #281D53 #3E2D80 #543DAE

Accessibility & contrast

On white

15.10
#281D53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281D53
15.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D53#FFFFFF#000000##FFFFFF
##281D531.0015.101.3915.10
#FFFFFF15.101.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281d53;
/* rgb */ color: rgb(40, 29, 83);
/* oklch */ color: oklch(27.8% 0.094 288.1);
Tailwind
colors: {
  custom: {
    50: '#665984',
    500: '#281d53',
    950: '#000000',
  },
}
SCSS
$custom: #281d53;
$custom-light: #665984;
$custom-dark: #000000;
JSON
{
  "hex": "#281d53",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 83
  },
  "hsl": {
    "h": 252.222,
    "s": 48.214,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27821,
    "c": 0.09409,
    "h": 288.1
  },
  "luminance": 0.01954
}

Semantic roles & 50–950 ramp

primary
#281D53
secondary
#7A8844
accent
#D850BC
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #281D53

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

Preview Lab → · Contrast checker → · Palette generator →

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