#281F35#281F35

#281F35 is a dark, muted violet. Relative luminance 0.017; OKLCH L 26.0% C 0.042 H 302.4°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#281F35
RGBrgb(40, 31, 53)
HSLhsl(265, 26%, 16%)
HSVhsv(265, 42%, 21%)
CMYKcmyk(24.5%, 41.5%, 0%, 79.2%)
CIE-LABlab(13.76, 9.95, -12.81)
CIE-LCHlch(13.76, 16.22, 307.83°)
OKLaboklab(26.05% 0.0225 -0.0355)
OKLCHoklch(26.05% 0.042 302.4)
XYZxyz(2.0075, 1.6881, 3.5876)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F35 #2C351F
analogous
#1F2135 #281F35 #331F35
triadic
#281F35 #35281F #1F3528
tetradic
#281F35 #351F21 #2C351F #1F3533
square
#281F35 #351F21 #2C351F #1F3533
split-complementary
#281F35 #35331F #21351F
monochromatic
#0F0B13 #0F0B13 #281F35 #45365C #624C82

Accessibility & contrast

On white

15.70
#281F35 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#281F35 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F35
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F35#FFFFFF#000000##FFFFFF
##281F351.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2336
Deuteranopia (green-blind)
#1C2334
Tritanopia (blue-blind)
#262227
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #281f35;
/* rgb */ color: rgb(40, 31, 53);
/* oklch */ color: oklch(26.0% 0.042 302.4);
Tailwind
colors: {
  custom: {
    50: '#625a6c',
    500: '#281f35',
    950: '#000000',
  },
}
SCSS
$custom: #281f35;
$custom-light: #625a6c;
$custom-dark: #000000;
JSON
{
  "hex": "#281f35",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 53
  },
  "hsl": {
    "h": 264.545,
    "s": 26.19,
    "l": 16.471
  },
  "oklch": {
    "l": 0.26046,
    "c": 0.04199,
    "h": 302.4
  },
  "luminance": 0.01688
}

Semantic roles & 50–950 ramp

primary
#281F35
secondary
#5B6848
accent
#C3659C
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050307
muted
#79787A

Preview Lab

Preview with #281F35

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

Preview Lab → · Contrast checker → · Palette generator →

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