#281F37#281F37

#281F37 is a dark, muted violet. Relative luminance 0.017; OKLCH L 26.2% C 0.045 H 300.6°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#281F37
RGBrgb(40, 31, 55)
HSLhsl(263, 28%, 17%)
HSVhsv(263, 44%, 22%)
CMYKcmyk(27.3%, 43.6%, 0%, 78.4%)
CIE-LABlab(13.87, 10.54, -14.06)
CIE-LCHlch(13.87, 17.58, 306.86°)
OKLaboklab(26.17% 0.0231 -0.0391)
OKLCHoklch(26.17% 0.045 300.6)
XYZxyz(2.0545, 1.7069, 3.8349)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F37 #2E371F
analogous
#1F2237 #281F37 #341F37
triadic
#281F37 #37281F #1F3728
tetradic
#281F37 #371F22 #2E371F #1F3734
square
#281F37 #371F22 #2E371F #1F3734
split-complementary
#281F37 #37341F #22371F
monochromatic
#0E0B14 #0E0B14 #281F37 #44355E #614B85

Accessibility & contrast

On white

15.66
#281F37 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281F37
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F37#FFFFFF#000000##FFFFFF
##281F371.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192338
Deuteranopia (green-blind)
#1B2336
Tritanopia (blue-blind)
#252328
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #281f37;
/* rgb */ color: rgb(40, 31, 55);
/* oklch */ color: oklch(26.2% 0.045 300.6);
Tailwind
colors: {
  custom: {
    50: '#625a6e',
    500: '#281f37',
    950: '#000000',
  },
}
SCSS
$custom: #281f37;
$custom-light: #625a6e;
$custom-dark: #000000;
JSON
{
  "hex": "#281f37",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 55
  },
  "hsl": {
    "h": 262.5,
    "s": 27.907,
    "l": 16.863
  },
  "oklch": {
    "l": 0.26166,
    "c": 0.04536,
    "h": 300.6
  },
  "luminance": 0.01707
}

Semantic roles & 50–950 ramp

primary
#281F37
secondary
#5D6A48
accent
#C464A0
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050307
muted
#79787A

Preview Lab

Preview with #281F37

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

Preview Lab → · Contrast checker → · Palette generator →

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