#28232B#28232B

#28232B is a dark, near-neutral violet. Relative luminance 0.018; OKLCH L 26.5% C 0.016 H 312.9°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#28232B
RGBrgb(40, 35, 43)
HSLhsl(278, 10%, 15%)
HSVhsv(278, 19%, 17%)
CMYKcmyk(7%, 18.6%, 0%, 83.1%)
CIE-LABlab(14.56, 4.28, -4.44)
CIE-LCHlch(14.56, 6.17, 313.95°)
OKLaboklab(26.5% 0.0111 -0.0119)
OKLCHoklch(26.5% 0.016 312.9)
XYZxyz(1.9121, 1.8276, 2.5371)
Luminance0.0183 (WCAG relative)
Temperatureneutral
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28232B #262B23
analogous
#24232B #28232B #2B232A
triadic
#28232B #2B2823 #232B28
tetradic
#28232B #2B2423 #262B23 #232A2B
square
#28232B #2B2423 #262B23 #232A2B
split-complementary
#28232B #2A2B23 #232B24
monochromatic
#100E11 #100E11 #28232B #473E4D #675A6E

Accessibility & contrast

On white

15.38
#28232B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#28232B on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##28232B#FFFFFF#000000##FFFFFF
##28232B1.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)
#22242B
Deuteranopia (green-blind)
#23252B
Tritanopia (blue-blind)
#282426
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #28232b;
/* rgb */ color: rgb(40, 35, 43);
/* oklch */ color: oklch(26.5% 0.016 312.9);
Tailwind
colors: {
  custom: {
    50: '#615d64',
    500: '#28232b',
    950: '#000000',
  },
}
SCSS
$custom: #28232b;
$custom-light: #615d64;
$custom-dark: #000000;
JSON
{
  "hex": "#28232b",
  "rgb": {
    "r": 40,
    "g": 35,
    "b": 43
  },
  "hsl": {
    "h": 277.5,
    "s": 10.256,
    "l": 15.294
  },
  "oklch": {
    "l": 0.26504,
    "c": 0.0163,
    "h": 312.9
  },
  "luminance": 0.01828
}

Semantic roles & 50–950 ramp

primary
#28232B
secondary
#535B4F
accent
#B3758C
background
#F5F5F5
surface
#E9E9EA
border
#C5C5C6
text
#050405
muted
#797979

Preview Lab

Preview with #28232B

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

Preview Lab → · Contrast checker → · Palette generator →

#28232B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva