#281834#281834

#281834 is a very dark, muted violet. Relative luminance 0.014; OKLCH L 24.4% C 0.055 H 309.2°. Best body text is #FFFFFF at 16.53:1 contrast (WCAG AA passes).

Color values

HEX#281834
RGBrgb(40, 24, 52)
HSLhsl(274, 37%, 15%)
HSVhsv(274, 54%, 20%)
CMYKcmyk(23.1%, 53.8%, 0%, 79.6%)
CIE-LABlab(11.64, 14.68, -15.41)
CIE-LCHlch(11.64, 21.28, 313.60°)
OKLaboklab(24.43% 0.035 -0.0429)
OKLCHoklch(24.43% 0.055 309.2)
XYZxyz(1.8214, 1.3523, 3.4132)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281834 #243418
analogous
#1A1834 #281834 #341832
triadic
#281834 #342818 #183428
tetradic
#281834 #341A18 #243418 #183234
square
#281834 #341A18 #243418 #183234
split-complementary
#281834 #323418 #18341A
monochromatic
#100A15 #100A15 #281834 #482B5E #683F88

Accessibility & contrast

On white

16.53
#281834 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#281834 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281834
16.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281834#FFFFFF#000000##FFFFFF
##2818341.0016.531.2716.53
#FFFFFF16.531.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#111E35
Deuteranopia (green-blind)
#161F33
Tritanopia (blue-blind)
#261C23
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #281834;
/* rgb */ color: rgb(40, 24, 52);
/* oklch */ color: oklch(24.4% 0.055 309.2);
Tailwind
colors: {
  custom: {
    50: '#63556b',
    500: '#281834',
    950: '#000000',
  },
}
SCSS
$custom: #281834;
$custom-light: #63556b;
$custom-dark: #000000;
JSON
{
  "hex": "#281834",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 52
  },
  "hsl": {
    "h": 274.286,
    "s": 36.842,
    "l": 14.902
  },
  "oklch": {
    "l": 0.24425,
    "c": 0.05538,
    "h": 309.2
  },
  "luminance": 0.01352
}

Semantic roles & 50–950 ramp

primary
#281834
secondary
#516A3E
accent
#CD5B8C
background
#F5F4F6
surface
#EAE8EB
border
#C6C4C6
text
#050306
muted
#79787A

Preview Lab

Preview with #281834

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

Preview Lab → · Contrast checker → · Palette generator →

#281834 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva