#281E3E#281E3E

#281E3E is a dark, muted violet. Relative luminance 0.017; OKLCH L 26.4% C 0.059 H 296.5°. Best body text is #FFFFFF at 15.61:1 contrast (WCAG AA passes).

Color values

HEX#281E3E
RGBrgb(40, 30, 62)
HSLhsl(259, 35%, 18%)
HSVhsv(259, 52%, 24%)
CMYKcmyk(35.5%, 51.6%, 0%, 75.7%)
CIE-LABlab(13.99, 13.43, -18.82)
CIE-LCHlch(13.99, 23.12, 305.51°)
OKLaboklab(26.39% 0.0264 -0.0528)
OKLCHoklch(26.39% 0.059 296.5)
XYZxyz(2.2086, 1.7274, 4.7736)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E3E #343E1E
analogous
#1E243E #281E3E #381E3E
triadic
#281E3E #3E281E #1E3E28
tetradic
#281E3E #3E1E24 #343E1E #1E3E38
square
#281E3E #3E1E24 #343E1E #1E3E38
split-complementary
#281E3E #3E381E #243E1E
monochromatic
#0D0A15 #0D0A15 #281E3E #433267 #5D4690

Accessibility & contrast

On white

15.61
#281E3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#281E3E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281E3E
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E3E#FFFFFF#000000##FFFFFF
##281E3E1.0015.611.3515.61
#FFFFFF15.611.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14243F
Deuteranopia (green-blind)
#16233D
Tritanopia (blue-blind)
#23242B
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #281e3e;
/* rgb */ color: rgb(40, 30, 62);
/* oklch */ color: oklch(26.4% 0.059 296.5);
Tailwind
colors: {
  custom: {
    50: '#635a73',
    500: '#281e3e',
    950: '#000000',
  },
}
SCSS
$custom: #281e3e;
$custom-light: #635a73;
$custom-dark: #000000;
JSON
{
  "hex": "#281e3e",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 62
  },
  "hsl": {
    "h": 258.75,
    "s": 34.783,
    "l": 18.039
  },
  "oklch": {
    "l": 0.26393,
    "c": 0.05908,
    "h": 296.5
  },
  "luminance": 0.01727
}

Semantic roles & 50–950 ramp

primary
#281E3E
secondary
#647246
accent
#CB5DA9
background
#F5F5F7
surface
#EAE9ED
border
#C6C5C8
text
#050308
muted
#79787B

Preview Lab

Preview with #281E3E

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

Preview Lab → · Contrast checker → · Palette generator →

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