#281E4E#281E4E

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

Color values

HEX#281E4E
RGBrgb(40, 30, 78)
HSLhsl(253, 44%, 21%)
HSVhsv(253, 62%, 31%)
CMYKcmyk(48.7%, 61.5%, 0%, 69.4%)
CIE-LABlab(15.11, 18.72, -28.11)
CIE-LCHlch(15.11, 33.77, 303.66°)
OKLaboklab(27.6% 0.0279 -0.0801)
OKLCHoklch(27.6% 0.085 289.2)
XYZxyz(2.7141, 1.9296, 7.4357)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E4E #444E1E
analogous
#1E2C4E #281E4E #401E4E
triadic
#281E4E #4E281E #1E4E28
tetradic
#281E4E #4E1E2C #444E1E #1E4E40
square
#281E4E #4E1E2C #444E1E #1E4E40
split-complementary
#281E4E #4E401E #2C4E1E
monochromatic
#0B0916 #110D22 #281E4E #3F2F7A #5540A6

Accessibility & contrast

On white

15.15
#281E4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281E4E
15.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E4E#FFFFFF#000000##FFFFFF
##281E4E1.0015.151.3915.15
#FFFFFF15.151.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042750
Deuteranopia (green-blind)
#05254D
Tritanopia (blue-blind)
#1D2832
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #281e4e;
/* rgb */ color: rgb(40, 30, 78);
/* oklch */ color: oklch(27.6% 0.085 289.2);
Tailwind
colors: {
  custom: {
    50: '#655a80',
    500: '#281e4e',
    950: '#000000',
  },
}
SCSS
$custom: #281e4e;
$custom-light: #655a80;
$custom-dark: #000000;
JSON
{
  "hex": "#281e4e",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 78
  },
  "hsl": {
    "h": 252.5,
    "s": 44.444,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27597,
    "c": 0.08479,
    "h": 289.2
  },
  "luminance": 0.0193
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #281E4E

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

Preview Lab → · Contrast checker → · Palette generator →

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