#281D4E#281D4E

#281D4E is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.4% C 0.086 H 289.8°. Best body text is #FFFFFF at 15.26:1 contrast (WCAG AA passes).

Color values

HEX#281D4E
RGBrgb(40, 29, 78)
HSLhsl(253, 46%, 21%)
HSVhsv(253, 63%, 31%)
CMYKcmyk(48.7%, 62.8%, 0%, 69.4%)
CIE-LABlab(14.84, 19.41, -28.54)
CIE-LCHlch(14.84, 34.52, 304.22°)
OKLaboklab(27.4% 0.0293 -0.0813)
OKLCHoklch(27.4% 0.086 289.8)
XYZxyz(2.6892, 1.8798, 7.4274)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D4E #434E1D
analogous
#1D2A4E #281D4E #401D4E
triadic
#281D4E #4E281D #1D4E28
tetradic
#281D4E #4E1D2A #434E1D #1D4E40
square
#281D4E #4E1D2A #434E1D #1D4E40
split-complementary
#281D4E #4E401D #2A4E1D
monochromatic
#0B0816 #110C21 #281D4E #3F2E7B #563EA7

Accessibility & contrast

On white

15.26
#281D4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281D4E
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D4E#FFFFFF#000000##FFFFFF
##281D4E1.0015.261.3815.26
#FFFFFF15.261.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022650
Deuteranopia (green-blind)
#03244D
Tritanopia (blue-blind)
#1D2832
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #281d4e;
/* rgb */ color: rgb(40, 29, 78);
/* oklch */ color: oklch(27.4% 0.086 289.8);
Tailwind
colors: {
  custom: {
    50: '#655980',
    500: '#281d4e',
    950: '#000000',
  },
}
SCSS
$custom: #281d4e;
$custom-light: #655980;
$custom-dark: #000000;
JSON
{
  "hex": "#281d4e",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 78
  },
  "hsl": {
    "h": 253.469,
    "s": 45.794,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27397,
    "c": 0.08646,
    "h": 289.8
  },
  "luminance": 0.0188
}

Semantic roles & 50–950 ramp

primary
#281D4E
secondary
#758344
accent
#D552B8
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #281D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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