#281C38#281C38

#281C38 is a dark, muted violet. Relative luminance 0.016; OKLCH L 25.6% C 0.053 H 302.6°. Best body text is #FFFFFF at 15.99:1 contrast (WCAG AA passes).

Color values

HEX#281C38
RGBrgb(40, 28, 56)
HSLhsl(266, 33%, 16%)
HSVhsv(266, 50%, 22%)
CMYKcmyk(28.6%, 50%, 0%, 78%)
CIE-LABlab(13.03, 13.01, -16.09)
CIE-LCHlch(13.03, 20.69, 308.96°)
OKLaboklab(25.55% 0.0287 -0.0449)
OKLCHoklch(25.55% 0.053 302.6)
XYZxyz(2.0040, 1.5671, 3.9375)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C38 #2C381C
analogous
#1C1E38 #281C38 #361C38
triadic
#281C38 #38281C #1C3828
tetradic
#281C38 #381C1E #2C381C #1C3836
square
#281C38 #381C1E #2C381C #1C3836
split-complementary
#281C38 #38361C #1E381C
monochromatic
#0F0A14 #0F0A14 #281C38 #453061 #62458A

Accessibility & contrast

On white

15.99
#281C38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#281C38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281C38
15.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C38#FFFFFF#000000##FFFFFF
##281C381.0015.991.3115.99
#FFFFFF15.991.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152139
Deuteranopia (green-blind)
#172237
Tritanopia (blue-blind)
#252127
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #281c38;
/* rgb */ color: rgb(40, 28, 56);
/* oklch */ color: oklch(25.6% 0.053 302.6);
Tailwind
colors: {
  custom: {
    50: '#63586e',
    500: '#281c38',
    950: '#000000',
  },
}
SCSS
$custom: #281c38;
$custom-light: #63586e;
$custom-dark: #000000;
JSON
{
  "hex": "#281c38",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 56
  },
  "hsl": {
    "h": 265.714,
    "s": 33.333,
    "l": 16.471
  },
  "oklch": {
    "l": 0.2555,
    "c": 0.05327,
    "h": 302.6
  },
  "luminance": 0.01567
}

Semantic roles & 50–950 ramp

primary
#281C38
secondary
#5B6C43
accent
#C95E9C
background
#F5F5F6
surface
#EAE9EC
border
#C6C5C7
text
#050307
muted
#79787A

Preview Lab

Preview with #281C38

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

Preview Lab → · Contrast checker → · Palette generator →

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