#281F33#281F33

#281F33 is a dark, muted violet. Relative luminance 0.017; OKLCH L 25.9% C 0.039 H 304.5°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#281F33
RGBrgb(40, 31, 51)
HSLhsl(267, 24%, 16%)
HSVhsv(267, 39%, 20%)
CMYKcmyk(21.6%, 39.2%, 0%, 80%)
CIE-LABlab(13.65, 9.36, -11.55)
CIE-LCHlch(13.65, 14.87, 309.04°)
OKLaboklab(25.93% 0.0219 -0.0319)
OKLCHoklch(25.93% 0.039 304.5)
XYZxyz(1.9625, 1.6701, 3.3503)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F33 #2A331F
analogous
#1F2033 #281F33 #321F33
triadic
#281F33 #33281F #1F3328
tetradic
#281F33 #331F20 #2A331F #1F3332
square
#281F33 #331F20 #2A331F #1F3332
split-complementary
#281F33 #33321F #20331F
monochromatic
#0F0C13 #0F0C13 #281F33 #463659 #644D7F

Accessibility & contrast

On white

15.74
#281F33 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#281F33 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F33
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F33#FFFFFF#000000##FFFFFF
##281F331.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2334
Deuteranopia (green-blind)
#1D2332
Tritanopia (blue-blind)
#262226
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #281f33;
/* rgb */ color: rgb(40, 31, 51);
/* oklch */ color: oklch(25.9% 0.039 304.5);
Tailwind
colors: {
  custom: {
    50: '#625a6a',
    500: '#281f33',
    950: '#000000',
  },
}
SCSS
$custom: #281f33;
$custom-light: #625a6a;
$custom-dark: #000000;
JSON
{
  "hex": "#281f33",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 51
  },
  "hsl": {
    "h": 267,
    "s": 24.39,
    "l": 16.078
  },
  "oklch": {
    "l": 0.2593,
    "c": 0.03864,
    "h": 304.5
  },
  "luminance": 0.0167
}

Semantic roles & 50–950 ramp

primary
#281F33
secondary
#586648
accent
#C16798
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050306
muted
#79787A

Preview Lab

Preview with #281F33

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

Preview Lab → · Contrast checker → · Palette generator →

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