#281E4D#281E4D

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

Color values

HEX#281E4D
RGBrgb(40, 30, 77)
HSLhsl(253, 44%, 21%)
HSVhsv(253, 61%, 30%)
CMYKcmyk(48.1%, 61%, 0%, 69.8%)
CIE-LABlab(15.04, 18.38, -27.54)
CIE-LCHlch(15.04, 33.11, 303.71°)
OKLaboklab(27.52% 0.0279 -0.0784)
OKLCHoklch(27.52% 0.083 289.6)
XYZxyz(2.6785, 1.9154, 7.2483)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E4D #434D1E
analogous
#1E2B4D #281E4D #3F1E4D
triadic
#281E4D #4D281E #1E4D28
tetradic
#281E4D #4D1E2B #434D1E #1E4D3F
square
#281E4D #4D1E2B #434D1E #1E4D3F
split-complementary
#281E4D #4D3F1E #2B4D1E
monochromatic
#0B0916 #110D21 #281E4D #3F2F79 #5640A5

Accessibility & contrast

On white

15.18
#281E4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281E4D
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E4D#FFFFFF#000000##FFFFFF
##281E4D1.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06274F
Deuteranopia (green-blind)
#07254C
Tritanopia (blue-blind)
#1D2832
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #281e4d;
/* rgb */ color: rgb(40, 30, 77);
/* oklch */ color: oklch(27.5% 0.083 289.6);
Tailwind
colors: {
  custom: {
    50: '#655a7f',
    500: '#281e4d',
    950: '#000000',
  },
}
SCSS
$custom: #281e4d;
$custom-light: #655a7f;
$custom-dark: #000000;
JSON
{
  "hex": "#281e4d",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 77
  },
  "hsl": {
    "h": 252.766,
    "s": 43.925,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27516,
    "c": 0.08323,
    "h": 289.6
  },
  "luminance": 0.01915
}

Semantic roles & 50–950 ramp

primary
#281E4D
secondary
#758245
accent
#D454B9
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #281E4D

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

Preview Lab → · Contrast checker → · Palette generator →

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