#281D4F#281D4F

#281D4F is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.5% C 0.088 H 289.4°. Best body text is #FFFFFF at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#281D4F
RGBrgb(40, 29, 79)
HSLhsl(253, 46%, 21%)
HSVhsv(253, 63%, 31%)
CMYKcmyk(49.4%, 63.3%, 0%, 69%)
CIE-LABlab(14.92, 19.75, -29.10)
CIE-LCHlch(14.92, 35.17, 304.17°)
OKLaboklab(27.48% 0.0293 -0.083)
OKLCHoklch(27.48% 0.088 289.4)
XYZxyz(2.7253, 1.8943, 7.6177)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D4F #444F1D
analogous
#1D2B4F #281D4F #411D4F
triadic
#281D4F #4F281D #1D4F28
tetradic
#281D4F #4F1D2B #444F1D #1D4F41
square
#281D4F #4F1D2B #444F1D #1D4F41
split-complementary
#281D4F #4F411D #2B4F1D
monochromatic
#0B0816 #110D22 #281D4F #3F2D7C #553EA9

Accessibility & contrast

On white

15.23
#281D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281D4F
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D4F#FFFFFF#000000##FFFFFF
##281D4F1.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002751
Deuteranopia (green-blind)
#02244E
Tritanopia (blue-blind)
#1C2832
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #281d4f;
/* rgb */ color: rgb(40, 29, 79);
/* oklch */ color: oklch(27.5% 0.088 289.4);
Tailwind
colors: {
  custom: {
    50: '#655981',
    500: '#281d4f',
    950: '#000000',
  },
}
SCSS
$custom: #281d4f;
$custom-light: #655981;
$custom-dark: #000000;
JSON
{
  "hex": "#281d4f",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 79
  },
  "hsl": {
    "h": 253.2,
    "s": 46.296,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27481,
    "c": 0.088,
    "h": 289.4
  },
  "luminance": 0.01894
}

Semantic roles & 50–950 ramp

primary
#281D4F
secondary
#768444
accent
#D652B9
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #281D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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