#281F3D#281F3D

#281F3D is a dark, muted violet. Relative luminance 0.018; OKLCH L 26.5% C 0.055 H 296.2°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#281F3D
RGBrgb(40, 31, 61)
HSLhsl(258, 33%, 18%)
HSVhsv(258, 49%, 24%)
CMYKcmyk(34.4%, 49.2%, 0%, 76.1%)
CIE-LABlab(14.22, 12.39, -17.75)
CIE-LCHlch(14.22, 21.65, 304.92°)
OKLaboklab(26.55% 0.0245 -0.0497)
OKLCHoklch(26.55% 0.055 296.2)
XYZxyz(2.2072, 1.7680, 4.6389)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F3D #343D1F
analogous
#1F253D #281F3D #371F3D
triadic
#281F3D #3D281F #1F3D28
tetradic
#281F3D #3D1F25 #343D1F #1F3D37
square
#281F3D #3D1F25 #343D1F #1F3D37
split-complementary
#281F3D #3D371F #253D1F
monochromatic
#0D0A14 #0D0A14 #281F3D #433466 #5D488E

Accessibility & contrast

On white

15.51
#281F3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281F3D
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F3D#FFFFFF#000000##FFFFFF
##281F3D1.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16243E
Deuteranopia (green-blind)
#18243C
Tritanopia (blue-blind)
#24242B
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #281f3d;
/* rgb */ color: rgb(40, 31, 61);
/* oklch */ color: oklch(26.5% 0.055 296.2);
Tailwind
colors: {
  custom: {
    50: '#635a72',
    500: '#281f3d',
    950: '#000000',
  },
}
SCSS
$custom: #281f3d;
$custom-light: #635a72;
$custom-dark: #000000;
JSON
{
  "hex": "#281f3d",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 61
  },
  "hsl": {
    "h": 258,
    "s": 32.609,
    "l": 18.039
  },
  "oklch": {
    "l": 0.26548,
    "c": 0.05546,
    "h": 296.2
  },
  "luminance": 0.01768
}

Semantic roles & 50–950 ramp

primary
#281F3D
secondary
#647147
accent
#C95FA9
background
#F5F5F6
surface
#EAE9EC
border
#C6C5C7
text
#050408
muted
#79797B

Preview Lab

Preview with #281F3D

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

Preview Lab → · Contrast checker → · Palette generator →

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