#281D50#281D50

#281D50 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.6% C 0.090 H 289.1°. Best body text is #FFFFFF at 15.20:1 contrast (WCAG AA passes).

Color values

HEX#281D50
RGBrgb(40, 29, 80)
HSLhsl(253, 47%, 21%)
HSVhsv(253, 64%, 31%)
CMYKcmyk(50%, 63.7%, 0%, 68.6%)
CIE-LABlab(15.00, 20.09, -29.65)
CIE-LCHlch(15.00, 35.82, 304.12°)
OKLaboklab(27.57% 0.0293 -0.0846)
OKLCHoklch(27.57% 0.09 289.1)
XYZxyz(2.7620, 1.9089, 7.8108)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D50 #45501D
analogous
#1D2C50 #281D50 #421D50
triadic
#281D50 #50281D #1D5028
tetradic
#281D50 #501D2C #45501D #1D5042
square
#281D50 #501D2C #45501D #1D5042
split-complementary
#281D50 #50421D #2C501D
monochromatic
#0B0816 #120D23 #281D50 #3E2D7D #553EAA

Accessibility & contrast

On white

15.20
#281D50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#281D50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281D50
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D50#FFFFFF#000000##FFFFFF
##281D501.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002752
Deuteranopia (green-blind)
#00244F
Tritanopia (blue-blind)
#1C2833
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #281d50;
/* rgb */ color: rgb(40, 29, 80);
/* oklch */ color: oklch(27.6% 0.090 289.1);
Tailwind
colors: {
  custom: {
    50: '#665981',
    500: '#281d50',
    950: '#000000',
  },
}
SCSS
$custom: #281d50;
$custom-light: #665981;
$custom-dark: #000000;
JSON
{
  "hex": "#281d50",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 80
  },
  "hsl": {
    "h": 252.941,
    "s": 46.789,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27565,
    "c": 0.08953,
    "h": 289.1
  },
  "luminance": 0.01909
}

Semantic roles & 50–950 ramp

primary
#281D50
secondary
#778544
accent
#D651BA
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #281D50

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

Preview Lab → · Contrast checker → · Palette generator →

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