#28202E#28202E

#28202E is a dark, muted violet. Relative luminance 0.017; OKLCH L 25.9% C 0.028 H 310.3°. Best body text is #FFFFFF at 15.72:1 contrast (WCAG AA passes).

Color values

HEX#28202E
RGBrgb(40, 32, 46)
HSLhsl(274, 18%, 15%)
HSVhsv(274, 30%, 18%)
CMYKcmyk(13%, 30.4%, 0%, 82%)
CIE-LABlab(13.72, 7.24, -7.86)
CIE-LCHlch(13.72, 10.69, 312.63°)
OKLaboklab(25.9% 0.0182 -0.0214)
OKLCHoklch(25.9% 0.028 310.3)
XYZxyz(1.8846, 1.6814, 2.8095)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28202E #262E20
analogous
#21202E #28202E #2E202D
triadic
#28202E #2E2820 #202E28
tetradic
#28202E #2E2120 #262E20 #202D2E
square
#28202E #2E2120 #262E20 #202D2E
split-complementary
#28202E #2D2E20 #202E21
monochromatic
#100D12 #100D12 #28202E #473952 #675276

Accessibility & contrast

On white

15.72
#28202E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#28202E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28202E
15.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28202E#FFFFFF#000000##FFFFFF
##28202E1.0015.721.3415.72
#FFFFFF15.721.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E232F
Deuteranopia (green-blind)
#1F232E
Tritanopia (blue-blind)
#272225
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #28202e;
/* rgb */ color: rgb(40, 32, 46);
/* oklch */ color: oklch(25.9% 0.028 310.3);
Tailwind
colors: {
  custom: {
    50: '#625b66',
    500: '#28202e',
    950: '#000000',
  },
}
SCSS
$custom: #28202e;
$custom-light: #625b66;
$custom-dark: #000000;
JSON
{
  "hex": "#28202e",
  "rgb": {
    "r": 40,
    "g": 32,
    "b": 46
  },
  "hsl": {
    "h": 274.286,
    "s": 17.949,
    "l": 15.294
  },
  "oklch": {
    "l": 0.259,
    "c": 0.02809,
    "h": 310.3
  },
  "luminance": 0.01681
}

Semantic roles & 50–950 ramp

primary
#28202E
secondary
#53604A
accent
#BB6D8E
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050406
muted
#79797A

Preview Lab

Preview with #28202E

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

Preview Lab → · Contrast checker → · Palette generator →

#28202E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva