#282232#282232

#282232 is a dark, muted violet. Relative luminance 0.018; OKLCH L 26.6% C 0.030 H 301.5°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#282232
RGBrgb(40, 34, 50)
HSLhsl(263, 19%, 16%)
HSVhsv(263, 32%, 20%)
CMYKcmyk(20%, 32%, 0%, 80.4%)
CIE-LABlab(14.54, 6.91, -9.46)
CIE-LCHlch(14.54, 11.71, 306.13°)
OKLaboklab(26.6% 0.0159 -0.0259)
OKLCHoklch(26.6% 0.03 301.5)
XYZxyz(2.0227, 1.8255, 3.2628)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282232 #2C3222
analogous
#222432 #282232 #302232
triadic
#282232 #322822 #223228
tetradic
#282232 #322224 #2C3222 #223230
square
#282232 #322224 #2C3222 #223230
split-complementary
#282232 #323022 #243222
monochromatic
#0F0C12 #0F0C12 #282232 #453B56 #62547B

Accessibility & contrast

On white

15.38
#282232 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#282232 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282232
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282232#FFFFFF#000000##FFFFFF
##2822321.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F2533
Deuteranopia (green-blind)
#202532
Tritanopia (blue-blind)
#262428
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #282232;
/* rgb */ color: rgb(40, 34, 50);
/* oklch */ color: oklch(26.6% 0.030 301.5);
Tailwind
colors: {
  custom: {
    50: '#625d69',
    500: '#282232',
    950: '#000000',
  },
}
SCSS
$custom: #282232;
$custom-light: #625d69;
$custom-dark: #000000;
JSON
{
  "hex": "#282232",
  "rgb": {
    "r": 40,
    "g": 34,
    "b": 50
  },
  "hsl": {
    "h": 262.5,
    "s": 19.048,
    "l": 16.471
  },
  "oklch": {
    "l": 0.26597,
    "c": 0.03042,
    "h": 301.5
  },
  "luminance": 0.01825
}

Semantic roles & 50–950 ramp

primary
#282232
secondary
#5B644C
accent
#BC6C9E
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050406
muted
#79797A

Preview Lab

Preview with #282232

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

Preview Lab → · Contrast checker → · Palette generator →

#282232 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva